diff options
author | avi <hi@avi.im> | 2015-07-17 21:58:55 +0530 |
---|---|---|
committer | avi <hi@avi.im> | 2015-07-17 21:58:55 +0530 |
commit | 141b78f42c7a3c1da1e5d605af3fc56aceb921ab (patch) | |
tree | 755f847bd604bc02680d934d08b81192f2fb7f25 /git/index/base.py | |
parent | c3d33c113b1dfa4be7e3c9924fae029c178505c3 (diff) | |
download | gitpython-141b78f42c7a3c1da1e5d605af3fc56aceb921ab.tar.gz |
Added two extra paramaters for commit to take author date and commit date
Diffstat (limited to 'git/index/base.py')
-rw-r--r-- | git/index/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git/index/base.py b/git/index/base.py index f8696800..78120da3 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -922,7 +922,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): return out - def commit(self, message, parent_commits=None, head=True, author=None, committer=None): + def commit(self, message, parent_commits=None, head=True, author=None, committer=None, author_date=None, commit_date=None): """Commit the current default index file, creating a commit object. For more information on the arguments, see tree.commit. @@ -932,7 +932,8 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): run_commit_hook('pre-commit', self) tree = self.write_tree() rval = Commit.create_from_tree(self.repo, tree, message, parent_commits, - head, author=author, committer=committer) + head, author=author, committer=committer, + author_date=author_date, commit_date=commit_date) run_commit_hook('post-commit', self) return rval |