This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Vendor branches on sourceware.org's binutils-gdb repo
- From: Michael Matz <matz at suse dot de>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: schwab at suse dot de, brobecker at adacore dot com, aaro dot koskinen at iki dot fi, sergiodj at redhat dot com, emachado at linux dot vnet dot ibm dot com, gdb at sourceware dot org, binutils at sourceware dot org, bergner at vnet dot ibm dot com, tuliom at linux dot vnet dot ibm dot com
- Date: Mon, 7 Apr 2014 17:44:27 +0200 (CEST)
- Subject: Re: Vendor branches on sourceware.org's binutils-gdb repo
- Authentication-results: sourceware.org; auth=none
- References: <53406399 dot 9050303 at linux dot vnet dot ibm dot com> <m3vbunyoza dot fsf at redhat dot com> <20140406191404 dot GC7558 at drone dot musicnaut dot iki dot fi> <20140407035120 dot GA4186 at adacore dot com> <alpine dot LNX dot 2 dot 00 dot 1404071623060 dot 23408 at wotan dot suse dot de> <201404071452 dot s37EqLB9024528 at glazunov dot sibelius dot xs4all dot nl> <mvmsipp5gdb dot fsf at hawking dot suse dot de> <201404071539 dot s37FdTVI031363 at glazunov dot sibelius dot xs4all dot nl>
Hi,
On Mon, 7 Apr 2014, Mark Kettenis wrote:
> > > 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.
> >
> > git-clone(1):
> >
> > --[no-]single-branch
> > Clone only the history leading to the tip of a single branch,
> > either specified by the --branch option or the primary branch
> > remote???s HEAD points at.
>
> But I can't push from a repository cloned like that can I?
You can. git fetch will continue to only fetch the named (or default)
branch, and git push will only push that branch. It's a normal git
repository in all respects, just with the fetch= config variable
restricted to just one head (instead of everything under refs/heads/).
Ciao,
Michael.