Skip to content

Commit 8715227

Browse files
peffgitster
authored andcommitted
log-tree: fix confusing comment
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 725cf7b commit 8715227

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

log-tree.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ void show_log(struct rev_info *opt)
321321
}
322322

323323
/*
324-
* If use_terminator is set, add a newline at the end of the entry.
324+
* If use_terminator is set, we already handled any record termination
325+
* at the end of the last record.
325326
* Otherwise, add a diffopt.line_termination character before all
326327
* entries but the first. (IOW, as a separator between entries)
327328
*/

0 commit comments

Comments
 (0)