Re: [PATCH] [WIP/RFC] add git pull and git fetch --set-upstream
- From
Matthieu Moy <matthieu.moy@univ-lyon1.fr>
- Date
- Apr 19, 2019, 09:44 UTC
- Message-ID
- <867ebq72ib.fsf@univ-lyon1.fr>
- In-Reply-To
- <04f23ebf83bd4aff90ee9ca88cec984e@BPMBX2013-01.univ-lyon1.fr>
Junio C Hamano <gitster@pobox.com> writes:
Show 19 quoted lines
> Matthieu Moy <Matthieu.Moy@univ-lyon1.fr> writes:
>
>> -u::
>> --set-upstream::
>> For every branch that is up to date or successfully pushed, add
>> upstream (tracking) reference, used by argument-less
>> linkgit:git-pull[1] and other commands. For more information,
>> see `branch.<name>.merge` in linkgit:git-config[1].
>>
>> Probably the reasoning was to make a symmetry between "git push
>> --set-upstream", which mentions "pull" in the doc, and the new "git pull
>> --set-upstream". However, I do not think there should be such symmetry:
>
> Yeah, if "git push --set-upstream" affects the settings that is used
> by "git pull", then the above description is good. Does this new
> "git pull --set-upstream" affect the settings used by "git push"? I
> somehow did not think so. It records the remote and branch used by
> this particular "git pull" invocation in branch.<name>.{remote,merge}
> for use by future uses of "git pull", right?It also affects push, in the absence of a branch.<name>.pushRemote setting (branch.<name>.remote will be used).
-- Matthieu Moy https://matthieu-moy.fr/