From: Markus Lehtonen Date: Wed, 5 Feb 2014 14:11:42 +0000 (+0200) Subject: GitRepository.commit_all: add committer_info argument X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb97105bf008f55fa24e43a612c7a96f9b55e465;p=tools%2Fgit-buildpackage.git GitRepository.commit_all: add committer_info argument For setting the committer name/email/date - similarly to author_info. Signed-off-by: Markus Lehtonen --- diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 17935a07..343b6d0f 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -1441,7 +1441,8 @@ class GitRepository(object): self._git_command("commit", default_args + args, extra_env=extra_env, interactive=edit) - def commit_staged(self, msg, author_info=None, edit=False): + def commit_staged(self, msg, author_info=None, edit=False, + committer_info=None): """ Commit currently staged files to the repository @@ -1451,8 +1452,11 @@ class GitRepository(object): @type author_info: L{GitModifier} @param edit: whether to spawn an editor to edit the commit info @type edit: C{bool} + @param committer_info: committer information + @type committer_info: L{GitModifier} """ - self._commit(msg=msg, author_info=author_info, edit=edit) + self._commit(msg=msg, author_info=author_info, + committer_info=committer_info, edit=edit) def commit_all(self, msg, author_info=None, edit=False): """