]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin-log.c
Lift 16kB limit of log message output
[thirdparty/git.git] / builtin-log.c
index 0aede7683986aff131f9278a968c84622c01181b..b9035ab7997612a91cd032e3cb1bcd5296585768 100644 (file)
@@ -742,11 +742,13 @@ int cmd_cherry(int argc, const char **argv, const char *prefix)
                        sign = '-';
 
                if (verbose) {
-                       static char buf[16384];
+                       char *buf = NULL;
+                       unsigned long buflen = 0;
                        pretty_print_commit(CMIT_FMT_ONELINE, commit, ~0,
-                                           buf, sizeof(buf), 0, NULL, NULL, 0);
+                                           &buf, &buflen, 0, NULL, NULL, 0);
                        printf("%c %s %s\n", sign,
                               sha1_to_hex(commit->object.sha1), buf);
+                       free(buf);
                }
                else {
                        printf("%c %s\n", sign,