Oops, fix short help wrt tab size short option
[tig] / tig.c
diff --git a/tig.c b/tig.c
index 6a72f7a..3a534fa 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -227,7 +227,7 @@ VERSION " (" __DATE__ ")\n"
 "  -l                          Start up in log view\n"
 "  -d                          Start up in diff view\n"
 "  -n[I], --line-number[=I]    Show line numbers with given interval\n"
-"  -t[N], --tab-size[=N]       Set number of spaces for tab expansion\n"
+"  -b[N], --tab-size[=N]       Set number of spaces for tab expansion\n"
 "  --                          Mark end of tig options\n"
 "  -v, --version               Show version and exit\n"
 "  -h, --help                  Show help message and exit\n";
@@ -2393,7 +2393,7 @@ load_refs(void)
 }
 
 static int
-read_config_option(char *name, int namelen, char *value, int valuelen)
+read_repo_config_option(char *name, int namelen, char *value, int valuelen)
 {
        if (!strcmp(name, "i18n.commitencoding")) {
                string_copy(opt_encoding, value);
@@ -2403,10 +2403,10 @@ read_config_option(char *name, int namelen, char *value, int valuelen)
 }
 
 static int
-load_config(void)
+load_repo_config(void)
 {
        return read_properties(popen("git repo-config --list", "r"),
-                              '=', read_config_option);
+                              "=", read_repo_config_option);
 }
 
 static int
@@ -2499,7 +2499,7 @@ main(int argc, char *argv[])
 
        /* Load the repo config file first so options can be overwritten from
         * the command line.  */
-       if (load_config() == ERR)
+       if (load_repo_config() == ERR)
                die("Failed to load repo config.");
 
        if (!parse_options(argc, argv))