summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-07-10 13:59:08 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-10 13:59:09 -0700
commit127c13aa41bdf3115561ae6e52313cfa278c35da (patch)
treed99fc0532a2a7d1b1e3145a554784a3360f72e25
parentMerge branch 'js/fsck-name-object' into maint (diff)
parentsubmodule--helper: do not call utf8_fprintf() unnecessarily (diff)
downloadtgif-127c13aa41bdf3115561ae6e52313cfa278c35da.tar.xz
Merge branch 'jc/utf8-fprintf' into maint
Code cleanup. * jc/utf8-fprintf: submodule--helper: do not call utf8_fprintf() unnecessarily
-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 566a5b6a6f..cbb17a9021 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -4,7 +4,6 @@
#include "quote.h"
#include "pathspec.h"
#include "dir.h"
-#include "utf8.h"
#include "submodule.h"
#include "submodule-config.h"
#include "string-list.h"
@@ -326,7 +325,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;
}
@@ -1038,7 +1037,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;
}