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

Re: How to stop sharing objects between repositories

From
Jeff King <peff@peff.net>
Date
Aug 17, 2009, 06:31 UTC
Message-ID
<20090817063143.GB27530@coredump.intra.peff.net>
In-Reply-To
<7vmy5z603d.fsf@alter.siamese.dyndns.org>
On Sun, Aug 16, 2009 at 12:16:22PM -0700, Junio C Hamano wrote:
Show 5 quoted lines
>  (2) IIRC, "git gc --auto" runs "repack -A".  What is its effect with
>      respect to this dependency between object stores?  I suspect it would
>      also break the dependency, but if so, is it a good thing?  Perhaps
>      should we change it to use a version that keeps the dependency
>      instead?

No, it actually runs "repack -d -l -A", which behaves fine. I even tested it to make sure.

BTW, the "gc.auto" setting is really annoying at low levels (I set gc.auto to 1 for testing). For efficiency, it looks at only one hashed object directory, and then assumes the other 255 contain roughly the same number of objects. But you get bad sampling error when you have fewer than 256 objects. I don't think it is worth caring about, though. It doesn't seem very sane to set gc.auto to something so low.

-Peff
Previous: Jeff King
Message 18 of 18 in “How to stop sharing objects between repositories”
  1. Jon JensenAug 16, 2009
  2. Johannes SchindelinAug 16, 2009
  3. Jeff KingAug 16, 2009
  4. Johannes SchindelinAug 16, 2009
  5. Daniel VilleneuveAug 16, 2009
  6. Johannes SchindelinAug 16, 2009
  7. Jeff KingAug 16, 2009
  8. Junio C HamanoAug 16, 2009
  9. Mike GalbraithAug 17, 2009
  10. Jeff KingAug 17, 2009
  11. Mike GalbraithAug 17, 2009
  12. Junio C HamanoAug 17, 2009
  13. Jeff KingAug 17, 2009
  14. Junio C HamanoAug 17, 2009
  15. Jeff KingAug 17, 2009
  16. Jeff KingAug 17, 2009
  17. Jeff KingAug 17, 2009
  18. Jeff KingAug 17, 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.