Quoting SZEDER Gábor <[email protected]>:
Now, if 'git for-each-ref' could understand '**' globbing, not just
fnmatch...
Oh, look, though the manpage says:
<pattern>...
If one or more patterns are given, only refs are shown that match
against at least one pattern, either using fnmatch(3) or literally,
'git for-each-ref' does in fact understand double asterisks:
$ git for-each-ref --format='%(refname)' '**/master'
refs/heads/master
refs/remotes/github/master
refs/remotes/origin/master
$ git for-each-ref --format='%(refname)' 'refs/heads/b/**'
refs/heads/b/r/a/n/c/h
Great, this combined with refname:strip=2 and 3 might open up some
more optimization possibilities...
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html