From fb97105bf008f55fa24e43a612c7a96f9b55e465 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 5 Feb 2014 16:11:42 +0200 Subject: [PATCH] GitRepository.commit_all: add committer_info argument For setting the committer name/email/date - similarly to author_info. Signed-off-by: Markus Lehtonen --- gbp/git/repository.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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): """ -- 2.34.1