From: Junio C Hamano Date: Mon, 17 Apr 2006 19:42:36 +0000 (-0700) Subject: rev-list --header: output format fix X-Git-Tag: v1.4.0-rc1~239^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db89665fbf86d4e0166b2f252a939ed8bf6782fe;p=git.git rev-list --header: output format fix Initial fix prepared by Johannes, but I did it slightly differently. Signed-off-by: Junio C Hamano --- 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;