diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-17 12:42:36 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-17 12:42:36 -0700 |
commit | db89665fbf86d4e0166b2f252a939ed8bf6782fe (patch) | |
tree | a56c557becaf2ee1b3cd79f2ae5f9b46906b2827 | |
parent | 78fff6ebbafe2d23464a2b059104954bfe8732c7 (diff) | |
download | git-db89665fbf86d4e0166b2f252a939ed8bf6782fe.tar.gz git-db89665fbf86d4e0166b2f252a939ed8bf6782fe.tar.xz |
rev-list --header: output format fix
Initial fix prepared by Johannes, but I did it slightly differently.
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r-- | rev-list.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |