summaryrefslogtreecommitdiff
path: root/git/diff.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/diff.py')
-rw-r--r--git/diff.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/git/diff.py b/git/diff.py
index 7a75ffed..de3aa1e8 100644
--- a/git/diff.py
+++ b/git/diff.py
@@ -95,9 +95,11 @@ class Diffable(object):
if other is self.Index:
args.insert(0, '--cached')
elif other is NULL_TREE:
+ args.insert(0, '-r') # recursive diff-tree
args.insert(0, '--root')
diff_cmd = self.repo.git.diff_tree
elif other is not None:
+ args.insert(0, '-r') # recursive diff-tree
args.insert(0, other)
diff_cmd = self.repo.git.diff_tree