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>
Fri, 14 Nov 2014 12:22:04 +0000 (14:22 +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 3dfcb45..cc79e14 100644 (file)
@@ -1372,7 +1372,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
 
@@ -1382,8 +1383,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):
         """