summaryrefslogtreecommitdiff
path: root/git/index/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/index/base.py')
-rw-r--r--git/index/base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/git/index/base.py b/git/index/base.py
index f8696800..b955dae4 100644
--- a/git/index/base.py
+++ b/git/index/base.py
@@ -922,7 +922,8 @@ 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 +933,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