Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-15 01:33:07 +0300
committerJunio C Hamano <gitster@pobox.com>2015-10-19 08:13:27 +0300
commit2a5ce7cf0da8c4d97dd58f5cbc6092b394648356 (patch)
tree79fa2726a9204a63ee6caba15fe50978fb8ac562 /builtin/mailinfo.c
parent22f698cb188243b313e024d618283e0293e37140 (diff)
mailinfo: remove a no-op call convert_to_utf8(it, "")
The called function checks if the second parameter is either a NULL or an empty string at the very beginning and returns without doing anything. Remove the useless call. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mailinfo.c')
-rw-r--r--builtin/mailinfo.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/builtin/mailinfo.c b/builtin/mailinfo.c
index 999a5250fb..5a4ed75a2d 100644
--- a/builtin/mailinfo.c
+++ b/builtin/mailinfo.c
@@ -612,11 +612,6 @@ static void decode_header(struct strbuf *it)
{
if (decode_header_bq(it))
return;
- /* otherwise "it" is a straight copy of the input.
- * This can be binary guck but there is no charset specified.
- */
- if (metainfo_charset)
- convert_to_utf8(it, "");
}
static void decode_transfer_encoding(struct strbuf *line)