Merge branch 'master' into lt/logopt
authorJunio C Hamano <junkio@cox.net>
Sun, 16 Apr 2006 09:31:11 +0000 (02:31 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 16 Apr 2006 09:31:11 +0000 (02:31 -0700)
* master:
  pager: do not fork a pager if PAGER is set to empty.
  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.
  diff-tree: typefix.
  GIT v1.3.0-rc4
  xdiff: post-process hunks to make them consistent.

1  2 
git.c

diff --cc git.c
--- 1/git.c
--- 2/git.c
+++ b/git.c
@@@ -327,11 -385,13 +327,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(rev->commit_format, commit, ~0, buf,
 +                                  LOGSIZE, rev->abbrev);
                printf("%s\n", buf);
-               if (rev->diff)
 -              if (do_diff) {
++              if (rev->diff) {
+                       printf("---\n");
 -                      log_tree_commit(&opt, commit);
 +                      log_tree_commit(rev, commit);
+               }
                shown = 1;
                free(commit->buffer);
                commit->buffer = NULL;