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

Re: [PATCH] git-fetch: Avoid reading packed refs over and over again

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 30, 2006, 19:24 UTC
Message-ID
<Pine.LNX.4.63.0612302020060.19693@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<4596B837.8030108@xs4all.nl>
Hi,
On Sat, 30 Dec 2006, Han-Wen Nienhuys wrote:
Show 12 quoted lines
> Johannes Schindelin escreveu:
> > 
> > Here you have to check first, if len > 3. Strictly speaking, there should 
> > not be any line coming in which is shorter than 42 bytes. But I was 
> > recentely bitten by such an assuption...
> > 
> > Overall, I like it. I even have the impression that this could actually 
> > open a way to build in fetch instead of relying on a POSIX conformant and 
> > fast shell for such a central part of git.
> 
> is there any chance of this going in GIT 1.5.0 ? It's not in the rc0 
> release.
Um.

$ git grep -e exclude-existing v1.5.0-rc0 v1.5.0-rc0:builtin-show-ref.c: if (!strcmp(arg, "--exclude-existing")) v1.5.0-rc0:builtin-show-ref.c: if (!strncmp(arg, "--exclude-existing=", 19)) v1.5.0-rc0:git-fetch.sh: git-show-ref --exclude-existing=refs/tags/ |

The last line means that it _is_ in v1.5.0-rc0. (BTW it is the commit tags/v1.5.0-rc0~84, which I found by "git log v1.5.0-rc0 git-fetch.sh | git name-rev --tags --stdin | less".)

Ciao, Dscho

Previous: Han-Wen NienhuysNext: Han-Wen Nienhuys
Message 5 of 6 in “git-fetch: Avoid reading packed refs over and over again”
  1. git-fetch: Avoid reading packed refs over and over againJohannes Schindelin, Dec 17, 2006
  2. Junio C HamanoDec 18, 2006
  3. Johannes SchindelinDec 18, 2006
  4. Han-Wen NienhuysDec 30, 2006
  5. Johannes SchindelinDec 30, 2006
  6. Han-Wen NienhuysDec 30, 2006

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.