From 832a47c4563804cd3cbb42983832113bea88b291 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 17 Dec 2006 22:05:12 +0100 Subject: [PATCH] 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. --- tig.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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")) -- 2.30.2