From: Michael Matz <matz@suse.de>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: brobecker@adacore.com, aaro.koskinen@iki.fi, sergiodj@redhat.com,
emachado@linux.vnet.ibm.com, gdb@sourceware.org,
binutils@sourceware.org, bergner@vnet.ibm.com,
tuliom@linux.vnet.ibm.com
Subject: Re: Vendor branches on sourceware.org's binutils-gdb repo
Date: Mon, 07 Apr 2014 15:41:00 -0000 [thread overview]
Message-ID: <alpine.LNX.2.00.1404071701320.23408@wotan.suse.de> (raw)
In-Reply-To: <201404071452.s37EqLB9024528@glazunov.sibelius.xs4all.nl>
Hi,
On Mon, 7 Apr 2014, Mark Kettenis wrote:
> > But it's not necessarily easy for the vendor to _host_ that other
> > repository.
>
> Really? Are there really companies that are active in the Free Software
> community that don't have the infrastructure to host a relatively small
> git repo?
It's not the infrastructure. It's policies. Some companies have a policy
of not publishing any code outside except through a heavy process, which
might include a white-list of where it may be published/hosted.
sourceware.org is on that white-list already. It may be very painful to
extend that white-list.
> > 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).
>
> Size is an issue for me. I try to support GDB on many platforms, some
> of which are somewhat old or low power and don't have a lot of disk
> storage. I'm already running into problems on some of my machines.
> And every time git messes up my repo because I run out of disk space
> (or just because it doesn't seem to properly implement DWIM) I need to
> fetch everything all over again.
>
> So how do I tell git to only clone master and not give me everybody
> else's shit? Last time I tried to do that, it simply didn't work.
master only is easy:
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
By default that setting is "+refs/heads/*:refs/remotes/origin/*" which
fetches everything under refs/heads/ (recursively unfortunately).
Furthermore the above aren't really filename globs (so e.g.
refs/heads/[^v]* doesn't work), but you can have multiple such refspecs.
So to retrieve just a subset of branches you can name them all
individually (git-config --add), or we need to employ some namespace
scheme where nothing is directly in refs/heads/, but only in
subdirectories of that. Then we could have:
+refs/heads/default/*:refs/remotes/origin/default/*
+refs/heads/vendor/*:refs/remotes/origin/vendor/*
(Or further subsetted to only some vendors). I'll admit that naming
subsets of branches to fetch is not that "easy" without changes in the
repository structure.
Ciao,
Michael.
next prev parent reply other threads:[~2014-04-07 15:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-05 20:12 Edjunior Barbosa Machado
2014-04-06 6:02 ` Sergio Durigan Junior
2014-04-06 19:18 ` Aaro Koskinen
2014-04-07 3:51 ` Joel Brobecker
2014-04-07 14:27 ` Michael Matz
2014-04-07 14:47 ` Joel Brobecker
2014-04-07 15:41 ` Markus Trippelsdorf
2014-04-07 14:52 ` Mark Kettenis
2014-04-07 15:06 ` Andreas Schwab
2014-04-07 15:16 ` Matthew Fortune
2014-04-07 15:39 ` Mark Kettenis
2014-04-07 15:43 ` Andreas Schwab
2014-04-07 15:44 ` Michael Matz
2014-04-07 15:41 ` Michael Matz [this message]
2014-04-07 15:46 ` Joel Brobecker
2014-04-07 15:48 ` Andreas Schwab
2014-04-09 1:49 ` Matt Rice
2014-04-09 12:46 ` Joel Brobecker
2014-04-08 23:17 ` Mike Frysinger
2014-04-09 17:58 ` Stan Shebs
2014-04-09 18:41 ` Doug Evans
2016-06-27 19:15 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.00.1404071701320.23408@wotan.suse.de \
--to=matz@suse.de \
--cc=aaro.koskinen@iki.fi \
--cc=bergner@vnet.ibm.com \
--cc=binutils@sourceware.org \
--cc=brobecker@adacore.com \
--cc=emachado@linux.vnet.ibm.com \
--cc=gdb@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
--cc=sergiodj@redhat.com \
--cc=tuliom@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox