mirror of
https://github.com/git/git.git
synced 2026-01-17 22:26:32 +00:00
Merge branch 'jh/dirstat' into next
* jh/dirstat: --dirstat: In case of renames, use target filename instead of source filename
This commit is contained in:
2
diff.c
2
diff.c
@@ -1543,7 +1543,7 @@ static void show_dirstat(struct diff_options *options)
|
||||
unsigned long copied, added, damage;
|
||||
int content_changed;
|
||||
|
||||
name = p->one->path ? p->one->path : p->two->path;
|
||||
name = p->two->path ? p->two->path : p->one->path;
|
||||
|
||||
if (p->one->sha1_valid && p->two->sha1_valid)
|
||||
content_changed = hashcmp(p->one->sha1, p->two->sha1);
|
||||
|
||||
Reference in New Issue
Block a user