summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-11-09 14:06:26 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-09 14:06:26 -0800
commitecf95d938b390e1ee7c1df78b9ebe3a59ffd44c9 (patch)
tree521b6d2bc5ef5d51482e4313b9579ab80568b8ad /Documentation
parentMerge branch 'pb/ref-filter-with-crlf' (diff)
parentremote: add meaningful exit code on missing/existing (diff)
downloadtgif-ecf95d938b390e1ee7c1df78b9ebe3a59ffd44c9.tar.xz
Merge branch 'ab/git-remote-exit-code'
Exit codes from "git remote add" etc. were not usable by scripted callers. * ab/git-remote-exit-code: remote: add meaningful exit code on missing/existing
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-remote.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt
index ea73386c81..31c29c9b31 100644
--- a/Documentation/git-remote.txt
+++ b/Documentation/git-remote.txt
@@ -203,6 +203,17 @@ The remote configuration is achieved using the `remote.origin.url` and
`remote.origin.fetch` configuration variables. (See
linkgit:git-config[1]).
+EXIT STATUS
+-----------
+
+On success, the exit status is `0`.
+
+When subcommands such as 'add', 'rename', and 'remove' can't find the
+remote in question, the exit status is `2`. When the remote already
+exists, the exit status is `3`.
+
+On any other error, the exit status may be any other non-zero value.
+
EXAMPLES
--------