X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=Documentation%2Fgit-show-ref.txt;h=75780d7d63894e220bf938da0b4f5dca40d6301d;hb=7e7db5e4520388d3a6f1efbe2f7a29d43bd06a2b;hp=70f400b2664df422160195a9615d566152a1b877;hpb=7d0dafe3945408aeef9c2e5256ac926976170e54;p=git.git diff --git a/Documentation/git-show-ref.txt b/Documentation/git-show-ref.txt index 70f400b26..75780d7d6 100644 --- a/Documentation/git-show-ref.txt +++ b/Documentation/git-show-ref.txt @@ -10,7 +10,7 @@ SYNOPSIS [verse] 'git show-ref' [-q|--quiet] [--verify] [--head] [-d|--dereference] [-s|--hash[=]] [--abbrev[=]] [--tags] - [--heads] [--] ... + [--heads] [--] [...] 'git show-ref' --exclude-existing[=] < ref-list DESCRIPTION @@ -72,7 +72,7 @@ OPTIONS --exclude-existing[=]:: - Make 'git-show-ref' act as a filter that reads refs from stdin of the + Make 'git show-ref' act as a filter that reads refs from stdin of the form "^(?:\s)?(?:\^\{\})?$" and performs the following actions on each: (1) strip "^{}" at the end of line if any; @@ -135,7 +135,7 @@ When using the '--verify' flag, the command requires an exact path: will only match the exact branch called "master". -If nothing matches, 'git-show-ref' will return an error code of 1, +If nothing matches, 'git show-ref' will return an error code of 1, and in the case of verification, it will show an error message. For scripting, you can ask it to be quiet with the "--quiet" flag, which @@ -163,9 +163,15 @@ flag, so you can do to get a listing of all tags together with what they dereference. +FILES +----- +`.git/refs/*`, `.git/packed-refs` + SEE ALSO -------- -linkgit:git-ls-remote[1] +linkgit:git-ls-remote[1], +linkgit:git-update-ref[1], +linkgit:gitrepository-layout[5] AUTHORS -------