From: Junio C Hamano Date: Mon, 17 Apr 2006 19:36:50 GMT Subject: Re: [PATCH] git-rev-list: fix --header Message-ID: <7vwtdom1t9.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > gitk expects raw verbose headers limited by \0. Meet these expectations. > > Signed-off-by: Johannes Schindelin Thanks. Wouldn't this be simpler and do the same thing, I wonder? The point being that "--pretty --header" and "--header --pretty" traditionally did not make --header to override --pretty. diff --git a/rev-list.c b/rev-list.c index 000f27a..d3c0dd9 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;