1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-19 20:39:24 +02:00

[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: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Junio C Hamano 2005-06-22 02:29:16 -07:00 committed by Linus Torvalds
parent f5ab6ccae3
commit 03b4538bad

View File

@ -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