summaryrefslogtreecommitdiff
path: root/mailinfo.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-15 00:43:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-10-21 22:57:17 (GMT)
commit05e625e5bf5231af984f17b82be9c48063b37242 (patch)
tree8bffc18f516eee935512382ed929ebeda4456280 /mailinfo.h
parent4933910ab7a74ebcf13342726d7f055ee35a8f7c (diff)
downloadgit-05e625e5bf5231af984f17b82be9c48063b37242.zip
git-05e625e5bf5231af984f17b82be9c48063b37242.tar.gz
git-05e625e5bf5231af984f17b82be9c48063b37242.tar.bz2
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 'mailinfo.h')
0 files changed, 0 insertions, 0 deletions