@matheusbsbs / matheus-bagliano / commits / 49e3343c9f
Fork 0

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>

Junio C Hamano committed May 14, 2006 at 21:59 UTC 49e3343c9fe0e134e0a8c1ec0ddeb64ae18ee9fd
1 file changed +1 -1
apply.c
+1 -1
@@ -1778,7 +1778,7 @@ static void numstat_patch_list(struct patch *patch)
1778 {
1779 for ( ; patch; patch = patch->next) {
1780 const char *name;
1781 - name = patch->old_name ? patch->old_name : patch->new_name;
1781 + name = patch->new_name ? patch->new_name : patch->old_name;
1782 printf("%d\t%d\t", patch->lines_added, patch->lines_deleted);
1783 if (line_termination && quote_c_style(name, NULL, NULL, 0))
1784 quote_c_style(name, NULL, stdout, 0);