pretty: save commit encoding from logmsg_reencode if the caller needs it
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 18 Apr 2013 23:08:40 +0000 (09:08 +1000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Apr 2013 23:28:27 +0000 (16:28 -0700)
commit5a10d236583f4a674e8fd969c877844c0a9ccb17
tree42f75dd4a87ae830a9474884b24b26ee341b2e3a
parent1468a5839309033feb2e58943babdd48b8e2d151
pretty: save commit encoding from logmsg_reencode if the caller needs it

The commit encoding is parsed by logmsg_reencode, there's no need for
the caller to re-parse it again. The reencoded message now has the new
encoding, not the original one. The caller would need to read commit
object again before parsing.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c
builtin/commit.c
commit.h
pretty.c
revision.c