diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-14 21:59:04 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-15 00:51:51 -0700 |
commit | 49e3343c9fe0e134e0a8c1ec0ddeb64ae18ee9fd (patch) | |
tree | de92a1f3cc72b25c3df40c0705a7562b23fa3f94 /apply.c | |
parent | Merge branch 'fix' (diff) | |
download | tgif-49e3343c9fe0e134e0a8c1ec0ddeb64ae18ee9fd.tar.xz |
apply --numstat: show new name, not old name.
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>
Diffstat (limited to 'apply.c')
-rw-r--r-- | apply.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1778,7 +1778,7 @@ static void numstat_patch_list(struct patch *patch) { 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); |