From db89665fbf86d4e0166b2f252a939ed8bf6782fe Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 17 Apr 2006 12:42:36 -0700 Subject: [PATCH] rev-list --header: output format fix Initial fix prepared by Johannes, but I did it slightly differently. Signed-off-by: Junio C Hamano --- rev-list.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rev-list.c b/rev-list.c index 000f27a8f..d3c0dd90e 100644 --- a/rev-list.c +++ b/rev-list.c @@ -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; -- 2.26.2