diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-02-05 16:11:42 +0200 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-05 14:20:03 +0300 |
commit | f3b923c486d20a8cb70c63e23c87fa67537b2245 (patch) | |
tree | c53adb2d1f1bc2d6670b3961d40f07e2e575ff58 /gbp/git | |
parent | ed4f98fb213dd5600ffd5b128f935c65a5ebb29b (diff) | |
download | git-buildpackage-f3b923c486d20a8cb70c63e23c87fa67537b2245.tar.gz git-buildpackage-f3b923c486d20a8cb70c63e23c87fa67537b2245.tar.bz2 git-buildpackage-f3b923c486d20a8cb70c63e23c87fa67537b2245.zip |
GitRepository.commit_all: add committer_info argument
For setting the committer name/email/date - similarly to author_info.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/git')
-rw-r--r-- | gbp/git/repository.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index f705f616..61ed500e 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -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): """ |