From 03b4538badb405b2f159531ad35873700d073bb8 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 22 Jun 2005 02:29:16 -0700 Subject: [PATCH] [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 --- apply.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2