Skip to content

Commit 02cfd14

Browse files
aschrabgitster
authored andcommitted
sequencer: use configured comment character
Use the configured comment character when generating comments about branches in a todo list. Failure to honor this configuration causes a failure to parse the resulting todo list. Setting core.commentChar to "auto" will not be honored here, and the previously configured or default value will be used instead. But, since the todo list will consist of only generated content, there should not be any non-comment lines beginning with that character. Signed-off-by: Aaron Schrab <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ed84343 commit 02cfd14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sequencer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3994,7 +3994,7 @@ static int make_script_with_merges(struct pretty_print_context *pp,
39943994
entry = oidmap_get(&state.commit2label, &commit->object.oid);
39953995

39963996
if (entry)
3997-
fprintf(out, "\n# Branch %s\n", entry->string);
3997+
fprintf(out, "\n%c Branch %s\n", comment_line_char, entry->string);
39983998
else
39993999
fprintf(out, "\n");
40004000

0 commit comments

Comments
 (0)