зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
542e165cdc
Коммит
6a5ea2d023
3
commit.c
3
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])
|
||||
|
|
Загрузка…
Ссылка в новой задаче