Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf533a68

Browse files
committed
Allow passing args to git-blame
This can be used to pass options like -C or -M.
1 parente5b8220 commitf533a68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎git/repo/base.py

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

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

717-
defblame(self,rev,file,incremental=False):
717+
defblame(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
ifincremental:
727-
returnself.blame_incremental(rev,file)
727+
returnself.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)

[8]ページ先頭

©2009-2025 Movatter.jp