Re: git pull (Re: need advice on usage patterns)
- From
Geoff Russell <geoffrey.russell@gmail.com>
- Date
- Jul 26, 2010, 10:37 UTC
- Message-ID
- <AANLkTimP8oQ-482QMuTjnX0zvCfadoQvq+=MkADfkTbV@mail.gmail.com>
- In-Reply-To
- <AANLkTikPHARaosHLwaKUqL12va4F7O3WMp1I4LIpu7Mp@mail.gmail.com>
On Mon, Jul 26, 2010 at 7:56 PM, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 8 quoted lines
> On Mon, Jul 26, 2010 at 03:36, Jonathan Nieder <jrnieder@gmail.com> wrote: > >> -'git pull' <options> <repository> <refspec>... >> +'git pull' <options> <repository> <branch>... > > Wasn't it "refspec" because git-pull can take args like > "refs/remotes/origin/*:refs/heads/*", not just branch names? >
Yes.
Thinking about the pull as 2 operations "fetch+merge" should have alerted me to the possibility that it could update 2 branches, ... the one in the <refspec> as well as the current branch ... if they are different.
Thanks,
Geoff