Skip to content

Commit

Permalink
rev-list --header: output format fix
Browse files Browse the repository at this point in the history
Initial fix prepared by Johannes, but I did it slightly differently.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Apr 17, 2006
1 parent 78fff6e commit db89665
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rev-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit db89665

Please sign in to comment.