* js/diffstat:
diff-options: add --patch-with-stat
diff-files --stat: do not dump core with unmerged index.
Support "git cmd --help" syntax
diff --stat: do not do its own three-dashes.
putchar(' ');
else
putchar('\n');
- pretty_print_commit(commit_format, commit, ~0, buf,
- LOGSIZE, abbrev);
+ pretty_print_commit(opt->commit_format, commit, ~0, buf,
+ LOGSIZE, wcopt->abbrev);
printf("%s\n", buf);
- if (wcopt->do_diff)
- if (do_diff) {
++ if (wcopt->do_diff) {
+ printf("---\n");
- log_tree_commit(&opt, commit);
+ log_tree_commit(opt, commit);
+ }
shown = 1;
free(commit->buffer);
commit->buffer = NULL;