Re: [PATCH] branch: make --set-upstream saner without an explicit starting point
- From
Carlos Martín Nieto <cmn@elego.de>
- Date
- Jul 6, 2012, 08:03 UTC
- 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:
Show 9 quoted lines
> Carlos Martín Nieto <cmn@elego.de> writes: > > > Yep, this seems good. Now that you mention the <name> 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=<upstream>. > 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