Re: [PATCH] git-completion.bash: always swallow error output of for-each-ref

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Quoting SZEDER Gábor <szeder@xxxxxxxxxx>:

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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]