Skip to content

Commit

Permalink
log-tree: fix confusing comment
Browse files Browse the repository at this point in the history
This comment mentions the case where use_terminator is set,
but this case is not handled at all by this chunk of code.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Jul 1, 2009
1 parent 725cf7b commit 8715227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion log-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ void show_log(struct rev_info *opt)
}

/*
* If use_terminator is set, add a newline at the end of the entry.
* If use_terminator is set, we already handled any record termination
* at the end of the last record.
* Otherwise, add a diffopt.line_termination character before all
* entries but the first. (IOW, as a separator between entries)
*/
Expand Down

0 comments on commit 8715227

Please sign in to comment.