Add --log-size to git log to print message size
[git/git.git] / log-tree.c
index 8624d5a..a642371 100644 (file)
@@ -295,6 +295,9 @@ void show_log(struct rev_info *opt, const char *sep)
        if (opt->add_signoff)
                len = append_signoff(&msgbuf, &msgbuf_len, len,
                                     opt->add_signoff);
+       if (opt->show_log_size)
+               printf("log size %i\n", len);
+
        printf("%s%s%s", msgbuf, extra, sep);
        free(msgbuf);
 }