]> git.ipfire.org Git - thirdparty/git.git/commit
doc/ls-remote: clarify pattern format
authorJeff King <peff@peff.net>
Sat, 11 Feb 2023 04:52:56 +0000 (23:52 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 11 Feb 2023 05:57:51 +0000 (21:57 -0800)
commitd9ec3b0dc0fe51b4e56df5a809d3a1f8d83b89eb
treee64a9784297d0236944389486d5a75bafeaed889
parentbaebde7d19a9281242f4542267b70e2565f63886
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>
Documentation/git-ls-remote.txt
builtin/ls-remote.c