summaryrefslogtreecommitdiff
path: root/builtin-log.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-05-16 07:15:07 -0400
committerJunio C Hamano <gitster@pobox.com>2007-06-09 02:03:30 -0700
commit66688334375adbc469419692a16857f3cda01a21 (patch)
treec91c88e165491d8a90bb30f607a331fdcdb67a91 /builtin-log.c
parent684a93d958262695473b6e3ff815df1ec948e4b7 (diff)
downloadgit-66688334375adbc469419692a16857f3cda01a21.tar.gz
cmd_log_init: remove parsing of --encoding command line parameter
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>
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/builtin-log.c b/builtin-log.c
index 212cdfc769..0aede76839 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -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;