RFC: git pull <remote> making an octopus?
From: Michael S. Tsirkin <hidden>
Date: 2016-06-15 22:42:36
From: Michael S. Tsirkin <hidden>
Date: 2016-06-15 22:42:36
Hi!
If I do
$git pull origin
where origin is a file in .git/remotes/origin with multiple Pull: lines,
then I seem to get an octopus merge. I would expect it to behave
in the same way as git pull without parameters.
Is this a bug or a feature?
My git pull page says:
While
git-pull run without any explicit <refspec> parameter takes
default <refspec>s from Pull: lines, it merges only the first
<refspec> found into the current branch, after fetching all the
remote refs. This is because making an Octopus from remote refs
is rarely done, while keeping track of multiple remote heads in
one-go by fetching more than one is often useful.
So, the same logic seems to apply to anything under .git/remotes.
Right?
--
MST