diff options
author | firm1 <dralliw@users.noreply.github.com> | 2014-03-24 14:49:33 +0100 |
---|---|---|
committer | firm1 <dralliw@users.noreply.github.com> | 2014-03-24 14:49:33 +0100 |
commit | 9d0473c1d1e6cadd986102712fff9196fff96212 (patch) | |
tree | 38e9a847cb9486eea6c65857832becd4dd492c8d /git | |
parent | 56d5d0c70cf3a914286fe016030c9edec25c3ae0 (diff) | |
download | gitpython-9d0473c1d1e6cadd986102712fff9196fff96212.tar.gz |
update commit function
Diffstat (limited to 'git')
-rw-r--r-- | git/index/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/index/base.py b/git/index/base.py index 3bd8634c..0c1b68d9 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -873,7 +873,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): return out - def commit(self, message, parent_commits=None, head=True): + def def commit(self, message, parent_commits=None, head=True, author=None, committer=None): """Commit the current default index file, creating a commit object. For more information on the arguments, see tree.commit. @@ -884,7 +884,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): :return: Commit object representing the new commit""" tree = self.write_tree() - return Commit.create_from_tree(self.repo, tree, message, parent_commits, head) + return Commit.create_from_tree(self.repo, tree, message, parent_commits, head, author=author, committer=committer) @classmethod def _flush_stdin_and_wait(cls, proc, ignore_stdout = False): |