accept datetime instances as dates · gitpython-developers/GitPython@4a19917 · GitHub
Skip to content

Commit 4a19917

Browse files
mildsunriseByron
authored andcommitted
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.
1 parent 6ef3775 commit 4a19917

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

git/objects/util.py

Lines changed: 5 additions & 0 deletions

test/test_util.py

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)