X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-rev-list.c;h=813aadf596df7fe2e61517915707717120842d74;hb=0cae23467ada9b94210a0e770064841efea8ad40;hp=ebf53f5944f1a53c5336f69e2ef3105ce50d0823;hpb=4662231e5654924c78fcb4b630fb48c58b945b7f;p=git.git diff --git a/builtin-rev-list.c b/builtin-rev-list.c index ebf53f594..813aadf59 100644 --- a/builtin-rev-list.c +++ b/builtin-rev-list.c @@ -92,11 +92,13 @@ static void show_commit(struct commit *commit) putchar('\n'); if (revs.verbose_header) { - static char pretty_header[16384]; + char *buf = NULL; + unsigned long buflen = 0; pretty_print_commit(revs.commit_format, commit, ~0, - pretty_header, sizeof(pretty_header), + &buf, &buflen, revs.abbrev, NULL, NULL, revs.date_mode); - printf("%s%c", pretty_header, hdr_termination); + printf("%s%c", buf, hdr_termination); + free(buf); } fflush(stdout); if (commit->parents) {