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 <aaron@schrab.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Aaron Schrab committed Jul 16, 2018 at 00:59 UTC 02cfd149207f65dd8462ed90c505c90af8655fc9
1 file changed +1 -1
sequencer.c
+1 -1
@@ -3994,7 +3994,7 @@ static int make_script_with_merges(struct pretty_print_context *pp,
3994 entry = oidmap_get(&state.commit2label, &commit->object.oid);
3995
3996 if (entry)
3997 - fprintf(out, "\n# Branch %s\n", entry->string);
3997 + fprintf(out, "\n%c Branch %s\n", comment_line_char, entry->string);
3998 else
3999 fprintf(out, "\n");
4000