From: skimo@liacs.nl Date: Wed, 23 May 2007 22:22:52 GMT Subject: [PATCH 03/22] git-config: add --remote option for reading config from remote repo Message-ID: <11799589913274-git-send-email-skimo@liacs.nl> In-Reply-To: <11799589913153-git-send-email-skimo@liacs.nl> From: Sven Verdoolaege Signed-off-by: Sven Verdoolaege --- Documentation/git-config.txt | 27 ++++++++++++++++--------- builtin-config.c | 44 ++++++++++++++++++++++++++++++++--------- cache.h | 1 + config.c | 26 ++++++++++++++++++++++++ 4 files changed, 78 insertions(+), 20 deletions(-) diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt index 827a499..549ef4e 100644 --- a/Documentation/git-config.txt +++ b/Documentation/git-config.txt @@ -9,16 +9,16 @@ git-config - Get and set repository or global options SYNOPSIS -------- [verse] -'git-config' [--system | --global] name [value [value_regex]] -'git-config' [--system | --global] --add name value -'git-config' [--system | --global] --replace-all name [value [value_regex]] -'git-config' [--system | --global] [type] --get name [value_regex] -'git-config' [--system | --global] [type] --get-all name [value_regex] -'git-config' [--system | --global] --unset name [value_regex] -'git-config' [--system | --global] --unset-all name [value_regex] -'git-config' [--system | --global] --rename-section old_name new_name -'git-config' [--system | --global] --remove-section name -'git-config' [--system | --global] -l | --list +'git-config' [scope] name [value [value_regex]] +'git-config' [scope] --add name value +'git-config' [scope] --replace-all name [value [value_regex]] +'git-config' [scope] [type] --get name [value_regex] +'git-config' [scope] [type] --get-all name [value_regex] +'git-config' [scope] --unset name [value_regex] +'git-config' [scope] --unset-all name [value_regex] +'git-config' [scope] --rename-section old_name new_name +'git-config' [scope] --remove-section name +'git-config' [scope] -l | --list DESCRIPTION ----------- @@ -33,6 +33,9 @@ existing values that match the regexp are updated or unset. If you want to handle the lines that do *not* match the regex, just prepend a single exclamation mark in front (see EXAMPLES). +The scope specifier can be either '--system', '--global' or +'--remote=[:]'. + The type specifier can be either '--int' or '--bool', which will make 'git-config' ensure that the variable(s) are of the given type and convert the value to the canonical form (simple decimal number for int, @@ -81,6 +84,10 @@ OPTIONS Use system-wide $(prefix)/etc/gitconfig rather than the repository .git/config. +--remote=[:]:]