diff options
author | SergeantMenacingGarlic <87030047+SergeantMenacingGarlic@users.noreply.github.com> | 2022-10-10 16:13:36 -0400 |
---|---|---|
committer | SergeantMenacingGarlic <87030047+SergeantMenacingGarlic@users.noreply.github.com> | 2022-10-13 13:12:57 -0400 |
commit | 8f51abd30647c9dfe857621ab97f52d3e5f2fbd9 (patch) | |
tree | 06345354b76ec5e66e1e8bf5368e46d6712173c0 /git/objects/commit.py | |
parent | 19aaa74aafc06663644d634f33bb8af871d58536 (diff) | |
download | gitpython-8f51abd30647c9dfe857621ab97f52d3e5f2fbd9.tar.gz |
Add datetime.datetime type to commit_date and author_date
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r-- | git/objects/commit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py index cf7d9aaa..82d2387b 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -435,8 +435,8 @@ class Commit(base.Object, TraversableIterableObj, Diffable, Serializable): head: bool = False, author: Union[None, Actor] = None, committer: Union[None, Actor] = None, - author_date: Union[None, str] = None, - commit_date: Union[None, str] = None, + author_date: Union[None, str, datetime.datetime] = None, + commit_date: Union[None, str, datetime.datetime] = None, ) -> "Commit": """Commit the given tree, creating a commit object. |