diff options
author | Alba Mendez <me@alba.sh> | 2020-08-31 10:43:24 +0200 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-08-31 19:19:17 +0800 |
commit | 4a1991773b79c50d4828091f58d2e5b0077ade96 (patch) | |
tree | ebbec4050808d430e1b5e5c0f536d35ccea265ea /git/repo/base.py | |
parent | 6ef37754527948af1338f8e4a408bda7034d004f (diff) | |
download | gitpython-4a1991773b79c50d4828091f58d2e5b0077ade96.tar.gz |
accept datetime instances as dates
There's no easy way to re-create a commit (i.e. for rewriting purposes), because dates must be formatted as strings, passed, then parsed back.
This patch allows parse_date() to accept datetime instances, such as those produced by from_timestamp() above.
Diffstat (limited to 'git/repo/base.py')
0 files changed, 0 insertions, 0 deletions