From: Junio C Hamano Date: Wed, 22 Jun 2005 09:29:16 +0000 (-0700) Subject: [PATCH] git-apply --stat: show new filename for rename/copy patch. X-Git-Tag: v0.99~209 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=03b4538badb405b2f159531ad35873700d073bb8;p=git.git [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 Signed-off-by: Linus Torvalds --- diff --git a/apply.c b/apply.c index af9753752..53a9bb626 100644 --- a/apply.c +++ b/apply.c @@ -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