On 11/01/2020 15:01, Richard Earnshaw wrote: > On 11/01/2020 14:58, Jakub Jelinek wrote: >> On Sat, Jan 11, 2020 at 02:51:21PM +0000, Richard Earnshaw wrote: >>> https://gcc.gnu.org/git/?p=gcc.git;a=shortlog;h=refs/vendors/redhat/heads/gcc-9-branch >>> >>> Works >>> >>> Or for tags s/heads/tags/ >> >> Indeed, this works, but if one doesn't know what branches there are for >> particular vendor or what vendors there are (or what users), I can't find >> how to query that. >> Can one query it even in git, or just has to know the right spelling of a >> particular vendor and then do git-fetch-vendor.sh that_vendor to see it? >> > > git ls-remote | grep vendors > > will list all the vendor branches and tags > > Filter that as appropriate. > > R. > >> Jakub >> >
$ git ls-remote|grep vendors|sed -r "s|.*vendors/([^/]+).*|\1|"|sort|uniq apple ARM csl google ibm ix86 linaro microblaze redhat st suse ubuntu We could add this to git-fetch-vendor if invoked without an option. R.