Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-11 01:39:35 +0400
committerJunio C Hamano <gitster@pobox.com>2014-06-12 21:29:43 +0400
commitd74a4e57d2703e841deed994752b948a768f31ec (patch)
treec50cf98bf55f2a5d72be1c021fdc9d3f97c9f7c5 /commit.h
parentb000c59b0c80fc187e5e0e48dc9396cd60576c4e (diff)
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.h')
0 files changed, 0 insertions, 0 deletions