aboutsummaryrefslogtreecommitdiffstats
path: root/builtin
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-02-10 23:52:56 -0500
committerJunio C Hamano <gitster@pobox.com>2023-02-10 21:57:51 -0800
commitd9ec3b0dc0fe51b4e56df5a809d3a1f8d83b89eb (patch)
treee64a9784297d0236944389486d5a75bafeaed889 /builtin
parentdoc/ls-remote: cosmetic cleanups for examples (diff)
downloadgit-d9ec3b0dc0fe51b4e56df5a809d3a1f8d83b89eb.tar.gz
git-d9ec3b0dc0fe51b4e56df5a809d3a1f8d83b89eb.zip
doc/ls-remote: clarify pattern format
We document that you can specify "refs" to ls-remote, but we don't explain any further than that they are "matched" as patterns. Since this can be interpreted in a lot of ways, let's clarify that they are tail-matched globs. Likewise, let's use the word "patterns" to refer to them consistently, rather than "refs" (both here and in the quick "-h" help), and mention more explicitly that only one pattern needs to be matched (though there is also an example already that shows this in action). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/ls-remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-remote.c b/builtin/ls-remote.c
index 5d5ac03871..6516177348 100644
--- a/builtin/ls-remote.c
+++ b/builtin/ls-remote.c
@@ -8,7 +8,7 @@
static const char * const ls_remote_usage[] = {
N_("git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]\n"
" [-q | --quiet] [--exit-code] [--get-url] [--sort=<key>]\n"
- " [--symref] [<repository> [<refs>...]]"),
+ " [--symref] [<repository> [<patterns>...]]"),
NULL
};