summaryrefslogtreecommitdiff
path: root/ident.c
diff options
context:
space:
mode:
authorTeng Long <dyroneteng@gmail.com>2022-11-09 17:06:52 +0800
committerTaylor Blau <me@ttaylorr.com>2022-11-09 21:43:16 -0500
commiteb792138075762bf41f9dea0bd56d0262cdcf506 (patch)
tree9e4c95c9051fa93fd166a5a39a4842c371667e3c /ident.c
parent3b08839926fcc7cc48cf4c759737c1a71af430c1 (diff)
downloadgit-eb792138075762bf41f9dea0bd56d0262cdcf506.tar.gz
notes.c: cleanup 'strbuf_grow' call in 'append_edit'
Let's cleanup the unnecessary 'strbuf_grow' call in 'append_edit'. This "strbuf_grow(&d.buf, size + 1);" is prepared for insert a blank line if needed, but actually when inserting, "strbuf_insertstr(&d.buf, 0, "\n");" will do the "grow" for us. Signed-off-by: Teng Long <dyroneteng@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'ident.c')
0 files changed, 0 insertions, 0 deletions