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 000f27a..d3c0dd9 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;