summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e267c2f)
raw | patch | inline | side by side (parent: e267c2f)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 15 Nov 2006 06:23:18 +0000 (22:23 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 15 Nov 2006 06:23:18 +0000 (22:23 -0800) |
We do not even know number of lines so showing it as 0 0 is
lying. This would also help Porcelains like cvsexportcommit.
Signed-off-by: Junio C Hamano <junkio@cox.net>
lying. This would also help Porcelains like cvsexportcommit.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-apply.c | patch | blob | history |
diff --git a/builtin-apply.c b/builtin-apply.c
index aad55261fae35fa644bc65aae79fc15aabc38244..b80ad2ce2e5daa0ff6f707154e839c3f09136883 100644 (file)
--- a/builtin-apply.c
+++ b/builtin-apply.c
for ( ; patch; patch = patch->next) {
const char *name;
name = patch->new_name ? patch->new_name : patch->old_name;
- printf("%d\t%d\t", patch->lines_added, patch->lines_deleted);
+ if (patch->is_binary)
+ printf("-\t-\t");
+ else
+ 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);
else