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

Commit22f5158

Browse files
author
Cesar Velazquez
committed
Enable user to override default diff -M arg
1 parent63a60b3 commit22f5158

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎git/diff.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ def diff(
144144
args.append("--abbrev=40")# we need full shas
145145
args.append("--full-index")# get full index paths, not only filenames
146146

147-
args.append("-M")# check for renames, in both formats
147+
# remove default '-M' arg (check for renames) if user is overriding it
148+
ifnotany(xinkwargsforxin ('find_renames','no_renames','M')):
149+
args.append("-M")
150+
148151
ifcreate_patch:
149152
args.append("-p")
150153
else:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp