@matheusbsbs / matheus-bagliano / commits / 6a5ea2d023
Fork 0

Fix "--pretty=format:" encoding item

It printed the header "encoding " instead of just showing the encoding, as all other items do. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jeff King committed Mar 28, 2007 at 17:09 UTC 6a5ea2d023906a6e8feea42afa45536db6fd493f
1 file changed +2 -1
commit.c
+2 -1
@@ -888,7 +888,8 @@ static long format_commit_message(const struct commit *commit,
888 fill_person(table + ICOMMITTER_NAME,
889 msg + i + 10, eol - i - 10);
890 else if (!prefixcmp(msg + i, "encoding "))
891 - table[IENCODING].value = xstrndup(msg + i, eol - i);
891 + table[IENCODING].value =
892 + xstrndup(msg + i + 9, eol - i - 9);
893 i = eol;
894 }
895 if (msg[i])