From: Jonas Fonseca Date: Sun, 17 Dec 2006 21:05:12 +0000 (+0100) Subject: Drop --stat usage from the main command assembled during option parsing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=832a47c4563804cd3cbb42983832113bea88b291;p=tig.git Drop --stat usage from the main command assembled during option parsing This is a follow up to commit fa187d6c87100b0c5d626eceb4369eef79176138 which removes one more useless use of --stat, which is very costly especially for the main view. A big thanks to Miciah for reporting this. --- diff --git a/tig.c b/tig.c index 16139c4..c622183 100644 --- a/tig.c +++ b/tig.c @@ -510,7 +510,7 @@ parse_options(int argc, char *argv[]) if (opt_request == REQ_VIEW_MAIN) /* XXX: This is vulnerable to the user overriding * options required for the main view parser. */ - string_copy(opt_cmd, "git log --stat --pretty=raw"); + string_copy(opt_cmd, "git log --pretty=raw"); else string_copy(opt_cmd, "git"); buf_size = strlen(opt_cmd); @@ -524,7 +524,6 @@ parse_options(int argc, char *argv[]) die("command too long"); opt_cmd[buf_size] = 0; - } if (*opt_encoding && strcasecmp(opt_encoding, "UTF-8"))