Code

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 3c8838582fbe516ef028dc5564d0e39287f0f4ea..6c98e62ad00962858e235f2a4299a530c2afdaf6 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;
                }