Skip to content

Commit f533a68

Browse files
committed
Allow passing args to git-blame
This can be used to pass options like -C or -M.
1 parent e5b8220 commit f533a68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git/repo/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def blame_incremental(self, rev, file, **kwargs):
714714

715715
yield commits[hexsha], range(lineno, lineno + num_lines)
716716

717-
def blame(self, rev, file, incremental=False):
717+
def blame(self, rev, file, incremental=False, **kwargs):
718718
"""The blame information for the given file at the given revision.
719719
720720
:parm rev: revision specifier, see git-rev-parse for viable options.
@@ -724,9 +724,9 @@ def blame(self, rev, file, incremental=False):
724724
changed within the given commit. The Commit objects will be given in order
725725
of appearance."""
726726
if incremental:
727-
return self.blame_incremental(rev, file)
727+
return self.blame_incremental(rev, file, **kwargs)
728728

729-
data = self.git.blame(rev, '--', file, p=True, stdout_as_string=False)
729+
data = self.git.blame(rev, '--', file, p=True, stdout_as_string=False, **kwargs)
730730
commits = dict()
731731
blames = list()
732732
info = None

0 commit comments

Comments
 (0)