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

Re: Seriously broken "git pack-refs"

From
Junio C Hamano <junkio@cox.net>
Date
Jan 26, 2007, 03:22 UTC
Message-ID
<7v7iva4glo.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0701251636060.25027@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 7 quoted lines
> The default for "git pack-refs" is to pack just tags. Which is a HORRIBLE 
> MISTAKE. Becuase it means that if you actually had any packed non-tags, 
> they now get removed entirely.
>
> I'd call whoever made that decision a complete crack-addict and total 
> idiot, but it might be me, so I'll just tread carefully and call the 
> choice "interesting".

Guilty as charged, I guess (I haven't asked 'blame' about it but I am reasonably sure it was me). And thanks for catching it.

But I think "only packing tags" is a reasonable default, as local branch heads are meant to be advanced, and remote tracking branches follow whatever happens on the remote end upon every fetch. Tags on the other hand are meant to be stationary.

What was a HORRIBLE MISTAKE was not repacking what came out of the pack if it was pruned.

Previous: Linus TorvaldsNext: Linus Torvalds
Message 2 of 6 in “Seriously broken "git pack-refs"”
  1. Linus TorvaldsJan 26, 2007
  2. Junio C HamanoJan 26, 2007
  3. Linus TorvaldsJan 26, 2007
  4. Junio C HamanoJan 26, 2007
  5. Linus TorvaldsJan 26, 2007
  6. Junio C HamanoJan 26, 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.