git-diff-tree: fix output with just "--pretty".
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 13 Jun 2005 03:34:09 +0000 (20:34 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 13 Jun 2005 03:34:09 +0000 (20:34 -0700)
It set verbose, but didn't set the output prefix to "diff-tree".

diff-tree.c

index 3c88385..6c98e62 100644 (file)
@@ -507,6 +507,7 @@ int main(int argc, const char **argv)
                }
                if (!strncmp(arg, "--pretty", 8)) {
                        verbose_header = 1;
+                       header_prefix = "diff-tree ";
                        commit_format = get_commit_format(arg+8);
                        continue;
                }