GitRepository.commit_all: add committer_info argument
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 5 Feb 2014 14:11:42 +0000 (16:11 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Mar 2015 08:07:45 +0000 (10:07 +0200)
For setting the committer name/email/date - similarly to author_info.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/git/repository.py

index 17935a07ff442b3bd464c989312d5bdf5e229602..343b6d0f7e19375a2d44e0337bbfd022c8da1efc 100644 (file)
@@ -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):
         """