Re: [PATCH 1/3] fetch: add --allow-local option
From: Felipe Contreras <hidden>
Date: 2016-06-15 22:57:17
On Thu, May 16, 2013 at 4:58 AM, Ramkumar Ramachandra [off-list ref] wrote:
Felipe Contreras wrote:quoted
Why would I do that? When I do 'git rebase' I want to rebase on top of 'master', not 'origin/master' (or whatever the upstream of 'master' is).Ah, so you want @{u} to point to refs/heads/master, but want to modify fetch to act on the hard-coded "origin", not @{u} (wouldn't you like to be able to configure this?).
No. What's the point of 'git fetch .'? What does 'git fetch' does when there's no configured upstream branch? Why doesn't 'git fetch' default to 'git fetch .' in those cases? Answer: because 'git fetch .' doesn't make any sense. So if 'branch.HEAD.remote' is '.' it doesn't make sense to do 'git fetch .'.
Seems a bit yuck overall; I wonder if there's some other way to achieve what you want.
Yeah, add 'branch.A.base' that would be used only by 'git rebase', which I already suggested before, but I changed my mind. Fixing 'git fetch' makes much more sense. -- Felipe Contreras