summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-10 21:39:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-12 17:29:43 (GMT)
commitd74a4e57d2703e841deed994752b948a768f31ec (patch)
treec50cf98bf55f2a5d72be1c021fdc9d3f97c9f7c5 /commit.c
parentb000c59b0c80fc187e5e0e48dc9396cd60576c4e (diff)
downloadgit-d74a4e57d2703e841deed994752b948a768f31ec.zip
git-d74a4e57d2703e841deed994752b948a768f31ec.tar.gz
git-d74a4e57d2703e841deed994752b948a768f31ec.tar.bz2
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 'commit.c')
0 files changed, 0 insertions, 0 deletions