aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-config.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-29 13:43:21 -0700
committerJunio C Hamano <gitster@pobox.com>2012-07-30 08:51:26 -0700
commit9409c7a5b33d6a4d68f58ccb1034fa50c92cac68 (patch)
tree3fe15b0625001b5b6331bec0324ed4b5d8932269 /Documentation/git-config.txt
parent785ee4960c3d334cbc2b17ab74d2cebdf1b4db64 (diff)
downloadgit-9409c7a5b33d6a4d68f58ccb1034fa50c92cac68.tar.gz
git-9409c7a5b33d6a4d68f58ccb1034fa50c92cac68.tar.xz
config: "git config baa" should exit with status 1
We instead failed with an undocumented exit status 255. Also define a "catch-all" status and document it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-config.txt')
-rw-r--r--Documentation/git-config.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index d9463cb38..529395fd1 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -54,16 +54,16 @@ configuration file by default, and options '--system', '--global',
'--file <filename>' can be used to tell the command to write to
that location (you can say '--local' but that is the default).
-This command will fail (with exit code ret) if:
+This command will fail with non-zero status upon error. Some exit
+codes are:
. The config file is invalid (ret=3),
. can not write to the config file (ret=4),
. no section or name was provided (ret=2),
. the section or key is invalid (ret=1),
. you try to unset an option which does not exist (ret=5),
-. you try to unset/set an option for which multiple lines match (ret=5),
-. you try to use an invalid regexp (ret=6), or
-. you use '--global' option without $HOME being properly set (ret=128).
+. you try to unset/set an option for which multiple lines match (ret=5), or
+. you try to use an invalid regexp (ret=6).
On success, the command returns the exit code 0.