Commit 03b4538b authored by Junio C Hamano's avatar Junio C Hamano Committed by Linus Torvalds

[PATCH] git-apply --stat: show new filename for rename/copy patch.

When a patch is a git extended rename/copy patch, "git-apply
--stat" showed the old filename.  Change it to show the new
filename, because most of the time we are interested in looking
at the resulting tree.
Signed-off-by: default avatarJunio C Hamano <[email protected]>
Signed-off-by: default avatarLinus Torvalds <[email protected]>
parent f5ab6cca
......@@ -723,11 +723,11 @@ const char minuses[]= "---------------------------------------------------------
static void show_stats(struct patch *patch)
char *name = patch->old_name;
char *name = patch->new_name;
int len, max, add, del, total;
if (!name)
name = patch->new_name;
name = patch->old_name;
* "scale" the filename
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment