@matheusbsbs / matheus-bagliano / commits / 9bc20aa731
Fork 0

Update git-config documentation

Documentation/git-config.txt: Added documentation for --system Documentation/builtin-config.c: Added --system to the short usage Signed-off-by: Andrew Ruder <andy@aeruder.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Andrew Ruder committed Apr 18, 2007 at 22:03 UTC 9bc20aa73152784ee758f6432e20820e581c9412
2 files changed +15 -11
Documentation/git-config.txt
+14 -10
@@ -9,16 +9,16 @@ git-config - Get and set repository or global options
9 SYNOPSIS
10 --------
11 [verse]
12 -'git-config' [--global] [type] name [value [value_regex]]
13 -'git-config' [--global] [type] --add name value
14 -'git-config' [--global] [type] --replace-all name [value [value_regex]]
15 -'git-config' [--global] [type] --get name [value_regex]
16 -'git-config' [--global] [type] --get-all name [value_regex]
17 -'git-config' [--global] [type] --unset name [value_regex]
18 -'git-config' [--global] [type] --unset-all name [value_regex]
19 -'git-config' [--global] [type] --rename-section old_name new_name
20 -'git-config' [--global] [type] --remove-section name
21 -'git-config' [--global] -l | --list
12 +'git-config' [--system | --global] [type] name [value [value_regex]]
13 +'git-config' [--system | --global] [type] --add name value
14 +'git-config' [--system | --global] [type] --replace-all name [value [value_regex]]
15 +'git-config' [--system | --global] [type] --get name [value_regex]
16 +'git-config' [--system | --global] [type] --get-all name [value_regex]
17 +'git-config' [--system | --global] [type] --unset name [value_regex]
18 +'git-config' [--system | --global] [type] --unset-all name [value_regex]
19 +'git-config' [--system | --global] [type] --rename-section old_name new_name
20 +'git-config' [--system | --global] [type] --remove-section name
21 +'git-config' [--system | --global] -l | --list
22
23 DESCRIPTION
24 -----------
@@ -76,6 +76,10 @@ OPTIONS
76 --global::
77 Use global ~/.gitconfig file rather than the repository .git/config.
78
79 +--system::
80 + Use system-wide $(prefix)/etc/gitconfig rather than the repository
81 + .git/config.
82 +
83 --remove-section::
84 Remove the given section from the configuration file.
85
builtin-config.c
+1 -1
@@ -2,7 +2,7 @@
2 #include "cache.h"
3
4 static const char git_config_set_usage[] =
5 -"git-config [ --global ] [ --bool | --int ] [--get | --get-all | --get-regexp | --replace-all | --add | --unset | --unset-all] name [value [value_regex]] | --rename-section old_name new_name | --remove-section name | --list";
5 +"git-config [ --global | --system ] [ --bool | --int ] [--get | --get-all | --get-regexp | --replace-all | --add | --unset | --unset-all] name [value [value_regex]] | --rename-section old_name new_name | --remove-section name | --list";
6
7 static char *key;
8 static regex_t *key_regexp;