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

Re: [RFC/PATCH 2/4] Teach the --multiple option to 'git fetch'

From
Jeff King <peff@peff.net>
Date
Nov 9, 2009, 01:08 UTC
Message-ID
<20091109010824.GA17414@coredump.intra.peff.net>
In-Reply-To
<76718490911081659u318ea362l29342a9b3d90f03f@mail.gmail.com>
On Sun, Nov 08, 2009 at 07:59:46PM -0500, Jay Soffian wrote:
Show 11 quoted lines
> 2009/11/8 Björn Gustavsson <bgustavsson@gmail.com>:
> > Add the --multiple option to specify that all arguments are either
> > groups or remotes. The primary reason for adding this option is
> > to allow us to re-implement 'git remote update' using fetch.
> 
> Can't this be determined automagically by inspecting the arguments? I
> believe there can be two unambiguous usages:
> [...]
> "The format of a <refspec> parameter is an optional plus +, followed
> by the source ref <src>, followed by a colon :, followed by the
> destination ref <dst>."

Isn't the colon optional, indicating that the ref should be fetched into FETCH_HEAD? I.e.,

  $ git fetch origin pu
  From git://git2.kernel.org/pub/scm/git/git
   * branch            pu         -> FETCH_HEAD
?
-Peff
Previous: Jay SoffianNext: Björn Gustavsson
Message 3 of 4 in “Teach the --multiple option to 'git fetch'”
  1. 2/4 Teach the --multiple option to 'git fetch'Björn Gustavsson, Nov 8, 2009
  2. Jay SoffianNov 9, 2009
  3. Jeff KingNov 9, 2009
  4. Björn GustavssonNov 9, 2009

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.