Skip to content

Commit 6668833

Browse files
peffgitster
authored andcommitted
cmd_log_init: remove parsing of --encoding command line parameter
This was moved to the setup_revisions parsing in 7cbcf4d, so it was never being triggered. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 684a93d commit 6668833

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

builtin-log.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,7 @@ static void cmd_log_init(int argc, const char **argv, const char *prefix,
6060
rev->always_show_header = 0;
6161
for (i = 1; i < argc; i++) {
6262
const char *arg = argv[i];
63-
if (!prefixcmp(arg, "--encoding=")) {
64-
arg += 11;
65-
if (strcmp(arg, "none"))
66-
git_log_output_encoding = xstrdup(arg);
67-
else
68-
git_log_output_encoding = "";
69-
} else if (!strcmp(arg, "--decorate")) {
63+
if (!strcmp(arg, "--decorate")) {
7064
if (!decorate)
7165
for_each_ref(add_ref_decoration, NULL);
7266
decorate = 1;

0 commit comments

Comments
 (0)