Code

cmd_log_init: remove parsing of --encoding command line parameter
authorJeff King <peff@peff.net>
Wed, 16 May 2007 11:15:07 +0000 (07:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 9 Jun 2007 09:03:30 +0000 (02:03 -0700)
This was moved to the setup_revisions parsing in 7cbcf4d5, so it was
never being triggered.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-log.c

index 212cdfc769b58403a99155e321ea36f018061ea4..0aede7683986aff131f9278a968c84622c01181b 100644 (file)
@@ -60,13 +60,7 @@ static void cmd_log_init(int argc, const char **argv, const char *prefix,
                rev->always_show_header = 0;
        for (i = 1; i < argc; i++) {
                const char *arg = argv[i];
-               if (!prefixcmp(arg, "--encoding=")) {
-                       arg += 11;
-                       if (strcmp(arg, "none"))
-                               git_log_output_encoding = xstrdup(arg);
-                       else
-                               git_log_output_encoding = "";
-               } else if (!strcmp(arg, "--decorate")) {
+               if (!strcmp(arg, "--decorate")) {
                        if (!decorate)
                                for_each_ref(add_ref_decoration, NULL);
                        decorate = 1;