From: Carlos Martín Nieto Date: Fri, 06 Jul 2012 08:03:29 GMT Subject: Re: [PATCH] branch: make --set-upstream saner without an explicit starting point Message-ID: <1341561809.10752.61.camel@flaca.cmartin.tk> In-Reply-To: <7vpq89ny8q.fsf@alter.siamese.dyndns.org> On Fri, 2012-07-06 at 00:29 -0700, Junio C Hamano wrote: > Carlos Martín Nieto writes: > > > Yep, this seems good. Now that you mention the existing, I wonder > > if letting --set-upstream create the branch as well wasn't another bad > > decision, as the name suggests it's for setting that information after > > the branch has already been created. > > You should be able to correct that for --set-upstream-to=. > It is clearly about setting upstream for an existing branch, right? Yeah, it's for changing the tracking information and should refuse to do so if the branch doesn't exist yet. cmn