Skip to content

Commit

Permalink
GitRepository.commit_all: add committer_info argument
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
  • Loading branch information
marquiz committed Sep 17, 2018
1 parent 3b23750 commit 9e10801
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gbp/git/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -1475,17 +1475,20 @@ def commit_staged(self, msg, author_info=None, edit=False,
self._commit(msg=msg, args=args.args, author_info=author_info,
committer_info=committer_info)

def commit_all(self, msg, author_info=None, edit=False):
def commit_all(self, msg, author_info=None, edit=False, committer_info=None):
"""
Commit all changes to the repository
@param msg: commit message
@type msg: C{str}
@param author_info: authorship information
@type author_info: L{GitModifier}
@param committer_info: committer information
@type committer_info: L{GitModifier}
"""
args = GitArgs('-a')
args.add_true(edit, '--edit')
self._commit(msg=msg, args=args.args, author_info=author_info)
self._commit(msg=msg, args=args.args, author_info=author_info,
committer_info=committer_info)

def commit_files(self, files, msg, author_info=None, committer_info=None):
"""
Expand Down

0 comments on commit 9e10801

Please sign in to comment.