summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-06 18:14:44 -0700
committerJunio C Hamano <gitster@pobox.com>2017-07-06 18:14:44 -0700
commit62458ea3338198560a22baa91124cea6d12d8bf5 (patch)
tree5918e9aad5dc14e450f11cd778bfa6b1579d7ab0 /builtin
parent8f58a34cad97c562f88c9d502c4f3b8886355cbe (diff)
parentdc4b4a61baac86bb75b0bdffb9ca45e90c4e194d (diff)
downloadgit-62458ea3338198560a22baa91124cea6d12d8bf5.tar.gz
Merge branch 'jc/utf8-fprintf'
Code cleanup. * jc/utf8-fprintf: submodule--helper: do not call utf8_fprintf() unnecessarily
Diffstat (limited to 'builtin')
-rw-r--r--builtin/submodule--helper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index e1b06c41d8..6abdad3294 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -6,7 +6,6 @@
#include "quote.h"
#include "pathspec.h"
#include "dir.h"
-#include "utf8.h"
#include "submodule.h"
#include "submodule-config.h"
#include "string-list.h"
@@ -327,7 +326,7 @@ static int module_list(int argc, const char **argv, const char *prefix)
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;
}
@@ -1039,7 +1038,7 @@ static int update_clone(int argc, const char **argv, const char *prefix)
return 1;
for_each_string_list_item(item, &suc.projectlines)
- utf8_fprintf(stdout, "%s", item->string);
+ fprintf(stdout, "%s", item->string);
return 0;
}