git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Ævar Arnfjörð BjarmasonNext: Jonathan Nieder
Message 7 of 8 in “need advice on usage patterns”
  1. Geoff RussellJul 26, 2010
  2. git pull (Re: need advice on usage patterns)Jonathan Nieder, Jul 26, 2010
  3. Thomas RastJul 26, 2010
  4. Jonathan NiederJul 26, 2010
  5. Thomas RastJul 27, 2010
  6. Ævar Arnfjörð BjarmasonJul 26, 2010
  7. Geoff RussellJul 26, 2010
  8. Jonathan NiederJul 26, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.