Skip to content

Commit 127c13a

Browse files
committed
Merge branch 'jc/utf8-fprintf' into maint
Code cleanup. * jc/utf8-fprintf: submodule--helper: do not call utf8_fprintf() unnecessarily
2 parents 8e7b78a + dc4b4a6 commit 127c13a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

builtin/submodule--helper.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "quote.h"
55
#include "pathspec.h"
66
#include "dir.h"
7-
#include "utf8.h"
87
#include "submodule.h"
98
#include "submodule-config.h"
109
#include "string-list.h"
@@ -326,7 +325,7 @@ static int module_list(int argc, const char **argv, const char *prefix)
326325
printf("%06o %s %d\t", ce->ce_mode,
327326
oid_to_hex(&ce->oid), ce_stage(ce));
328327

329-
utf8_fprintf(stdout, "%s\n", ce->name);
328+
fprintf(stdout, "%s\n", ce->name);
330329
}
331330
return 0;
332331
}
@@ -1038,7 +1037,7 @@ static int update_clone(int argc, const char **argv, const char *prefix)
10381037
return 1;
10391038

10401039
for_each_string_list_item(item, &suc.projectlines)
1041-
utf8_fprintf(stdout, "%s", item->string);
1040+
fprintf(stdout, "%s", item->string);
10421041

10431042
return 0;
10441043
}

0 commit comments

Comments
 (0)