Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jl/maint-pull-tags-doc' into maint
[gitweb.git]
/
builtin
/
rev-list.c
diff --git
a/builtin/rev-list.c
b/builtin/rev-list.c
index 158ce1111af12db1445d82cfa5728bc19837570d..ba27d39f977f2807cddb6e18364837b9fd50e970 100644
(file)
--- a/
builtin/rev-list.c
+++ b/
builtin/rev-list.c
@@
-147,8
+147,10
@@
static void show_commit(struct commit *commit, void *data)
}
} else {
if (revs->commit_format != CMIT_FMT_USERFORMAT ||
- buf.len)
- printf("%s%c", buf.buf, info->hdr_termination);
+ buf.len) {
+ fwrite(buf.buf, 1, buf.len, stdout);
+ putchar(info->hdr_termination);
+ }
}
strbuf_release(&buf);
} else {