* [PATCH] Fix "--pretty=format:" encoding item
@ 2007-03-28 21:09 Jeff King
0 siblings, 0 replies; only message in thread
From: Jeff King @ 2007-03-28 21:09 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Johannes Schindelin, git
It printed the header "encoding " instead of just showing
the encoding, as all other items do.
This now passes t6006.
Signed-off-by: Jeff King <peff@peff.net>
---
commit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/commit.c b/commit.c
index 9ac533c..a4f2e74 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])
--
1.5.1.rc2.636.gff57
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-28 21:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-28 21:09 [PATCH] Fix "--pretty=format:" encoding item Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).