From: Junio C Hamano Date: Fri, 7 Jul 2017 01:14:44 +0000 (-0700) Subject: Merge branch 'jc/utf8-fprintf' X-Git-Tag: v2.14.0-rc0~31 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/62458ea3338198560a22baa91124cea6d12d8bf5 Merge branch 'jc/utf8-fprintf' Code cleanup. * jc/utf8-fprintf: submodule--helper: do not call utf8_fprintf() unnecessarily --- 62458ea3338198560a22baa91124cea6d12d8bf5 diff --cc builtin/submodule--helper.c index e1b06c41d8,704df874d1..6abdad3294 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@@ -324,10 -295,9 +323,10 @@@ static int module_list(int argc, const if (ce_stage(ce)) printf("%06o %s U\t", ce->ce_mode, sha1_to_hex(null_sha1)); else - printf("%06o %s %d\t", ce->ce_mode, sha1_to_hex(ce->sha1), ce_stage(ce)); + printf("%06o %s %d\t", ce->ce_mode, + oid_to_hex(&ce->oid), ce_stage(ce)); - utf8_fprintf(stdout, "%s\n", ce->name); + fprintf(stdout, "%s\n", ce->name); } return 0; }