Merge branch 'js/diffstat' into next
authorJunio C Hamano <junkio@cox.net>
Sun, 16 Apr 2006 02:35:55 +0000 (19:35 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 16 Apr 2006 02:35:55 +0000 (19:35 -0700)
* 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.

1  2 
git.c

diff --cc git.c
--- 1/git.c
--- 2/git.c
+++ b/git.c
@@@ -330,11 -385,13 +330,13 @@@ static int cmd_log_wc(int argc, const c
                        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;