Code

Drop --stat usage from the main command assembled during option parsing
authorJonas Fonseca <fonseca@diku.dk>
Sun, 17 Dec 2006 21:05:12 +0000 (22:05 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Sun, 17 Dec 2006 21:05:12 +0000 (22:05 +0100)
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

diff --git a/tig.c b/tig.c
index 16139c4dd4a2bdf9e6bfe9db2b4f09eeefd1fe0e..c622183e18e6268d6c849154f69ceabb1257c10c 100644 (file)
--- 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"))