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

Commit28afef5

Browse files
committed
Perform diff-tree recursively to have the same output as diff
1 parent6bdaa46 commit28afef5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎git/diff.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ def diff(self, other=Index, paths=None, create_patch=False, **kwargs):
9595
ifotherisself.Index:
9696
args.insert(0,'--cached')
9797
elifotherisNULL_TREE:
98+
args.insert(0,'-r')# recursive diff-tree
9899
args.insert(0,'--root')
99100
diff_cmd=self.repo.git.diff_tree
100101
elifotherisnotNone:
102+
args.insert(0,'-r')# recursive diff-tree
101103
args.insert(0,other)
102104
diff_cmd=self.repo.git.diff_tree
103105

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp