Re: Vendor branches on sourceware.org's binutils-gdb repo

Markus Trippelsdorf <[email protected]>
Newsgroups gmane.comp.gnu.binutils,gmane.comp.gdb.devel
Message-ID <20140407154145.GA13239@x4>
On 2014.04.07 at 07:47 -0700, Joel Brobecker wrote:
> > But it's not necessarily easy for the vendor to _host_ that other 
> > repository.  And IMHO, the current 288 MB for binutils-gdb git objects 
> > aren't enough to discourage vendor branches (and if you're worried about 
> > the download size it's equally easy to simply not pull those branches).
> 
> I don't think it's "equally easy" to not pull those branches.
> If it is, I'd like to have the recipe for "pull all branches except
> some", and I will put it on the GDB wiki. 

That doesn't work in git AFAIK. What you can do is list all branches
that you like to pull in .git/config. The following example if from my
gcc git tree, but you get the idea:

[remote "origin"]
	url = git://gcc.gnu.org/git/gcc.git
	fetch = refs/heads/master:refs/remotes/origin/master
	fetch = refs/heads/gcc-4_7-branch:refs/remotes/origin/gcc-4_7-branch
	fetch = refs/heads/gcc-4_8-branch:refs/remotes/origin/gcc-4_8-branch

-- 
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.