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

Re: [PATCH] [RFC] Generational repacking

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Jun 7, 2007, 19:46 UTC
Message-ID
<46a038f90706071246y7dd14f55t199b8ed4e7617b68@mail.gmail.com>
In-Reply-To
<alpine.LFD.0.99.0706062314410.12885@xanadu.home>
On 6/7/07, Nicolas Pitre <nico@cam.org> wrote:
> Run git-repack without -a from some hook.  You can even launch it in the
> background.

I posted an RFC patch a while ago doing exactly that, and Linus shot it down, indicating we should instead print a message suggesting repack to the user.

Relevant thread around http://www.gelato.unsw.edu.au/archives/git/0606/22977.html

> Or what am I missing?

I don't think people were comfortable at the time with concurrent repacks -- though the semantics are safe if we don't hit any bug. My guess is that noone wants to risk the .001% chances of data corruption for this nice-to-have.

It was also probably a bad idea in my patch that it said -a -- it should just be
  git repack -l -q &

[And I generally agree with the concerns about possibly broken semantics, unexpected user actions and racing repacks. One of the main reasons I've never advocated SVN is that the early stories of data corruption using BDB backends made me very very very wary of it. Perhaps because I lot months of work in the past to disk corruption in a cvs repo, and have a good mental picture of the nervous breakdown that followed.]

cheers,
m
Previous: Sam VilainNext: Sam Vilain
Message 10 of 13 in “[RFC] Generational repacking”
  1. [RFC] Generational repackingSam Vilain, Jun 6, 2007
  2. Junio C HamanoJun 6, 2007
  3. Sam VilainJun 6, 2007
  4. Dana HowJun 7, 2007
  5. Sam VilainJun 7, 2007
  6. Nicolas PitreJun 7, 2007
  7. Sam VilainJun 7, 2007
  8. Nicolas PitreJun 7, 2007
  9. Sam VilainJun 7, 2007
  10. Martin LanghoffJun 7, 2007
  11. Sam VilainJun 7, 2007
  12. Martin LanghoffJun 7, 2007
  13. Nicolas PitreJun 7, 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.