Skip to content

Commit 376eb60

Browse files
stefanbellergitster
authored andcommitted
config doc: improve exit code listing
The possible reasons for exiting are now ordered by the exit code value. While at it, rewrite the `can not write to the config file` to `the config file cannot be written` to be grammatically correct and a proper sentence. Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 625efa9 commit 376eb60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/git-config.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ that location (you can say '--local' but that is the default).
5858
This command will fail with non-zero status upon error. Some exit
5959
codes are:
6060

61-
- The config file is invalid (ret=3),
62-
- can not write to the config file (ret=4),
61+
- The section or key is invalid (ret=1),
6362
- no section or name was provided (ret=2),
64-
- the section or key is invalid (ret=1),
63+
- the config file is invalid (ret=3),
64+
- the config file cannot be written (ret=4),
6565
- you try to unset an option which does not exist (ret=5),
6666
- you try to unset/set an option for which multiple lines match (ret=5), or
6767
- you try to use an invalid regexp (ret=6).

0 commit comments

Comments
 (0)