What type of "pattern" does git ls-remote
take?
man git-ls-remote
says:
<refs>... When unspecified, all references, after filtering done with --heads and --tags, are shown. When <refs>... are specified, only references matching the given patterns are displayed.
It is a POSIX shell glob, regex, gitignore pattern, ...?
Indeed, the documentation of
ls-remote
doesn't say much, but you can find this information in other pages. For example the documentation forgit tag -l
says:As far as I can tell git only supports the basic glob syntax but doesn't support "extended patterns" provided by the
FNM_EXTMATCH
.I think the filtering is actually implemented by
wildmatch()
, so the behavior may differ from the standardfnmatch
.