diff options
author | Jeff King <peff@peff.net> | 2014-06-10 17:39:35 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-12 10:29:43 -0700 |
commit | d74a4e57d2703e841deed994752b948a768f31ec (patch) | |
tree | c50cf98bf55f2a5d72be1c021fdc9d3f97c9f7c5 /quote.h | |
parent | logmsg_reencode: return const buffer (diff) | |
download | tgif-d74a4e57d2703e841deed994752b948a768f31ec.tar.xz |
sequencer: use logmsg_reencode in get_message
This simplifies the code, as logmsg_reencode handles the
reencoding for us in a single call. It also means we learn
logmsg_reencode's trick of pulling the buffer from disk when
commit->buffer is NULL (we currently just silently return!).
It is doubtful this matters in practice, though, as
sequencer operations would not generally turn off
save_commit_buffer.
Note that we may be fixing a bug here. The existing code
does:
if (same_encoding(to, from))
reencode_string(buf, to, from);
That probably should have been "!same_encoding".
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.h')
0 files changed, 0 insertions, 0 deletions