Re: [RFC/PATCH] pull: set-upstream implementation

2016-05-29 Thread Erwan Mathoniere
On 25/05/2016 20:09, Junio C Hamano wrote: > Erwan Mathoniere writes: >> Difficulties: >> - I can't figure out what remote branch sould be tracked >> in that case: `git pull -u origin :master` > > What does the command do without "-u"? After some

Re: [RFC/PATCH] pull: set-upstream implementation

2016-05-25 Thread Junio C Hamano
Erwan Mathoniere <erwan.mathoni...@grenoble-inp.org> writes: > Subject: Re: [RFC/PATCH] pull: set-upstream implementation If this were multi-patch series and one of the other patches were "pull: set-upstream design" or something, then it might have been understandable, but

[RFC/PATCH] pull: set-upstream implementation

2016-05-25 Thread Erwan Mathoniere
Implements pull [--set-upstream | -u] which sets the remote tracking branch to the one the user just pulled from. git pull [--set-upstream | -u] After successfully fetched from , sets branch..remote to and branch..merge to follow / Signed-off-by: Erwan Mathoniere