aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-23 10:27:08 -0700
committerJunio C Hamano <gitster@pobox.com>2011-05-23 10:27:08 -0700
commit3c0ae619e68398fe83d647b8460b399767ec103f (patch)
tree4a1e47bedda3d6bdc28b45aeeda057cb0c911bb3 /Documentation
parent6bb696c304d2bf27b267202af193d99cc7995370 (diff)
parenta87247731e46255567ec58df940adb697e5b95a8 (diff)
downloadgit-3c0ae619e68398fe83d647b8460b399767ec103f.tar.gz
git-3c0ae619e68398fe83d647b8460b399767ec103f.tar.xz
Merge branch 'ms/ls-remote-exit-with-status'
* ms/ls-remote-exit-with-status: ls-remote: the --exit-code option reports "no matching refs"
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-ls-remote.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-ls-remote.txt b/Documentation/git-ls-remote.txt
index c3df8c0eb..7a9b86a58 100644
--- a/Documentation/git-ls-remote.txt
+++ b/Documentation/git-ls-remote.txt
@@ -10,7 +10,7 @@ SYNOPSIS
--------
[verse]
'git ls-remote' [--heads] [--tags] [-u <exec> | --upload-pack <exec>]
- <repository> [<refs>...]
+ [--exit-code] <repository> [<refs>...]
DESCRIPTION
-----------
@@ -36,6 +36,12 @@ OPTIONS
SSH and where the SSH daemon does not use the PATH configured by the
user.
+--exit-code::
+ Exit with status "2" when no matching refs are found in the remote
+ repository. Usually the command exits with status "0" to indicate
+ it successfully talked with the remote repository, whether it
+ found any matching refs.
+
<repository>::
Location of the repository. The shorthand defined in
$GIT_DIR/branches/ can be used. Use "." (dot) to list references in