From 14c778a692e4964286a3a640de07dac9a846b67c Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 28 May 2006 04:29:45 +0200 Subject: [PATCH] Rename repo config loaders using s/config/repo_config/ load_config -> load_repo_config read_config_option -> read_repo_config_option --- tig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tig.c b/tig.c index 6a72f7a..0d62481 100644 --- a/tig.c +++ b/tig.c @@ -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)) -- 2.30.2