{"thread":{"id":"7456","subject":"[PATCH] Fix \"--pretty=format:\" encoding item","startedAt":"2007-03-28T21:09:05Z","lastAt":"2007-03-28T21:09:05Z","messageCount":1,"participants":["Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"38267","messageId":"20070328210905.GB7898@coredump.intra.peff.net","threadId":"7456","inReplyTo":null,"subject":"[PATCH] Fix \"--pretty=format:\" encoding item","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-03-28T21:09:05Z","receivedAt":"2007-03-28T21:09:05Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"It printed the header \"encoding \" instead of just showing\nthe encoding, as all other items do.\n\nThis now passes t6006.\n\nSigned-off-by: Jeff King <peff@peff.net>\n---\n commit.c |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/commit.c b/commit.c\nindex 9ac533c..a4f2e74 100644\n--- a/commit.c\n+++ b/commit.c\n@@ -888,7 +888,8 @@ static long format_commit_message(const struct commit *commit,\n \t\t\tfill_person(table + ICOMMITTER_NAME,\n \t\t\t\t\tmsg + i + 10, eol - i - 10);\n \t\telse if (!prefixcmp(msg + i, \"encoding \"))\n-\t\t\ttable[IENCODING].value = xstrndup(msg + i, eol - i);\n+\t\t\ttable[IENCODING].value =\n+\t\t\t\txstrndup(msg + i + 9, eol - i - 9);\n \t\ti = eol;\n \t}\n \tif (msg[i])\n-- \n1.5.1.rc2.636.gff57\n"}]}