summaryrefslogtreecommitdiff
path: root/builtin/show-branch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-14 17:43:27 -0700
committerJunio C Hamano <gitster@pobox.com>2015-10-21 15:57:17 -0700
commit05e625e5bf5231af984f17b82be9c48063b37242 (patch)
tree8bffc18f516eee935512382ed929ebeda4456280 /builtin/show-branch.c
parent4933910ab7a74ebcf13342726d7f055ee35a8f7c (diff)
downloadgit-05e625e5bf5231af984f17b82be9c48063b37242.tar.gz
mailinfo: keep the parsed log message in a strbuf
When mailinfo() is eventually libified, the calling "git am" still will have to write out the log message in the "msg" file for hooks and other users of the information, but it does not have to reopen and reread what it wrote earlier if the function kept it in a strbuf. This also removes the need for seeking and truncating the output file when we see a scissors mark in the input, which in turn allows us to lose two callsites of die_errno(). Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/show-branch.c')
0 files changed, 0 insertions, 0 deletions