diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-08-24 09:39:48 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-25 12:48:39 -0700 |
commit | e7ffa38c6e726e8014b76297b06f78e008deb2d0 (patch) | |
tree | 23d35822320860fab73be8a70d75e5ba19067831 /grep.h | |
parent | 12d6ce1dba504dfc5279b8d24da3edb4865c2820 (diff) | |
download | git-e7ffa38c6e726e8014b76297b06f78e008deb2d0.tar.gz |
write_file_v(): do not leave incomplete line at the end
All existing callers to this function use it to produce a text file
or an empty file, and a new callsite that mimick them must end their
payload with a LF. If they forget to do so, the resulting file will
end with an incomplete line.
Teach write_file_v() to complete the incomplete line, if exists, so
that the callers do not have to.
With this, the caller-side fix in builtin/am.c becomes unnecessary.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.h')
0 files changed, 0 insertions, 0 deletions