Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/numstat'
author
Junio C Hamano
<junkio@cox.net>
Fri, 24 Nov 2006 11:46:40 +0000
(
03:46
-0800)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 24 Nov 2006 11:46:40 +0000
(
03:46
-0800)
* jc/numstat:
apply --numstat: mark binary diffstat with - -, not 0 0
builtin-apply.c
patch
|
blob
|
history
raw
(from parent 1:
5b6be4c
)
diff --git
a/builtin-apply.c
b/builtin-apply.c
index 61f047fd45383ac64f27bef88e41b56efefdea3b..436d9e188070df0e4a51186716b033658a8672b5 100644
(file)
--- a/
builtin-apply.c
+++ b/
builtin-apply.c
@@
-2119,7
+2119,11
@@
static void numstat_patch_list(struct patch *patch)
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