summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de1d4fa)
raw | patch | inline | side by side (parent: de1d4fa)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 15 May 2006 04:59:04 +0000 (21:59 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 15 May 2006 07:51:51 +0000 (00:51 -0700) |
Somehow --stat showed the new name but --numstat showed the old
name for renamed/copied paths.
Signed-off-by: Junio C Hamano <junkio@cox.net>
name for renamed/copied paths.
Signed-off-by: Junio C Hamano <junkio@cox.net>
apply.c | patch | blob | history |
index 7c8146a7f317d9d1743e6a780eec823be72905a6..2151c96c2a4bef39baae7b694f149523a2315280 100644 (file)
--- a/apply.c
+++ b/apply.c
{
for ( ; patch; patch = patch->next) {
const char *name;
- name = patch->old_name ? patch->old_name : patch->new_name;
+ name = patch->new_name ? patch->new_name : patch->old_name;
printf("%d\t%d\t", patch->lines_added, patch->lines_deleted);
if (line_termination && quote_c_style(name, NULL, NULL, 0))
quote_c_style(name, NULL, stdout, 0);