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:32 UTC
Message-ID
<20090817063225.GA31533@coredump.intra.peff.net>
In-Reply-To
<20090817061916.GA27530@coredump.intra.peff.net>
On Mon, Aug 17, 2009 at 02:19:16AM -0400, Jeff King wrote:
Show 13 quoted lines
>   1. "git repack -a" is sufficient to break dependency, as it copies
>      both packed and loose objects
> 
>   2. "git repack" _may_ break the dependency, if there are no packs, as
>      it copies only loose objects. It _may_ introduce inefficiency, but
>      only if there are loose objects.
> 
>   3. "git repack -l" always keeps the dependency and current efficiency.
> 
>      As an aside, making this list makes me realize there is no easy
>      "keep the dependency and increase efficiency". In other words, pack
>      everything that is not available otherwise, and then prune the
>      remaining packs.

OK, I take it back. "git repack -d -l -A" will get rid of any packs that are redundant with your alternate.

-Peff
Previous: Jeff KingNext: Jeff King
Message 17 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.