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

Re: [PATCH 2/3] git-fetch: Support the local remote "."

From
SBSanti Béjar <sbejar@gmail.com>
Date
Mar 13, 2007, 23:01 UTC
Message-ID
<8aa486160703131601j19c4e3b2nd0a4e8ccd4cc7114@mail.gmail.com>
In-Reply-To
<45F6D718.5080601@lu.unisi.ch>
On 3/13/07, Paolo Bonzini <paolo.bonzini@lu.unisi.ch> wrote:
Show 19 quoted lines
> Santi Béjar wrote:
> > To this end, git-parse-remote is grown with a new kind of remote,
> > `builtin'. This returns all the local branches in
> > get_remote_default_refs_for_fetch. This is equivalent to having a
> > fake remote as:
> >
> > [remote "local"]
> > url = .
> > fetch = refs/*
> >
> > Based on a patch from Paolo Bonzini.
>
> Can you please compare the times to do "git fetch ."?  The reason
> to touch git-fetch.sh was an optimization that Junio requested.
>
> I found my 2nd submission to be 20% faster than the first.
>
> Paolo
>

Yes. But this optimization is independent of this patch, as it already exists without this (but it gets worse with this patch).

Also, I think, the split in fetch_main should be base on transport and not on the definition of the remote.

Santi
Previous: Paolo Bonzini
Message 3 of 3 in “git-fetch: Support the local remote "."”
  1. 2/3 git-fetch: Support the local remote "."Santi Béjar, Mar 13, 2007
  2. Paolo BonziniMar 13, 2007
  3. Santi BéjarMar 13, 2007

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.