From 6a5ea2d023906a6e8feea42afa45536db6fd493f Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 28 Mar 2007 17:09:05 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- commit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commit.c') diff --git a/commit.c b/commit.c index 9ac533c85a..a4f2e74c0b 100644 --- a/commit.c +++ b/commit.c @@ -888,7 +888,8 @@ static long format_commit_message(const struct commit *commit, fill_person(table + ICOMMITTER_NAME, msg + i + 10, eol - i - 10); else if (!prefixcmp(msg + i, "encoding ")) - table[IENCODING].value = xstrndup(msg + i, eol - i); + table[IENCODING].value = + xstrndup(msg + i + 9, eol - i - 9); i = eol; } if (msg[i]) -- cgit v1.2.3