Code

rev-list --header: output format fix
authorJunio C Hamano <junkio@cox.net>
Mon, 17 Apr 2006 19:42:36 +0000 (12:42 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 17 Apr 2006 19:42:36 +0000 (12:42 -0700)
Initial fix prepared by Johannes, but I did it slightly differently.

Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-list.c

index 000f27a8fedbb1ed981fc7466176c47cf8fee993..d3c0dd90e3cb94b253189b4968141b771caeabf5 100644 (file)
@@ -326,6 +326,9 @@ int main(int argc, const char **argv)
                else
                        revs.header_prefix = "commit ";
        }
+       else if (revs.verbose_header)
+               /* Only --header was specified */
+               revs.commit_format = CMIT_FMT_RAW;
 
        list = revs.commits;