mirror of
https://github.com/git/git
synced 2024-08-28 03:59:25 +00:00
Merge branch 'mg/notes-newline'
Avoid a stray empty newline in the template when creating new notes. * mg/notes-newline: notes: avoid empty line in template
This commit is contained in:
commit
2fe427ecb7
|
@ -181,7 +181,7 @@ static void prepare_note_data(const struct object_id *object, struct note_data *
|
|||
strbuf_addch(&buf, '\n');
|
||||
strbuf_add_commented_lines(&buf, "\n", strlen("\n"));
|
||||
strbuf_add_commented_lines(&buf, _(note_template), strlen(_(note_template)));
|
||||
strbuf_addch(&buf, '\n');
|
||||
strbuf_add_commented_lines(&buf, "\n", strlen("\n"));
|
||||
write_or_die(fd, buf.buf, buf.len);
|
||||
|
||||
write_commented_object(fd, object);
|
||||
|
|
Loading…
Reference in a new issue