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

Re: [Request] Git export with hardlinks

From
TKThomas Koch <thomas@koch.ro>
Date
Feb 10, 2013, 10:33 UTC
Message-ID
<201302101133.28746.thomas@koch.ro>
In-Reply-To
<20130208095819.GA17220@sigill.intra.peff.net>
Jeff King:
> [...]
> So a full checkout is 24M. For the next deploy, we'll start by asking
> "cp" to duplicate the old, using hard links:
Hi Jeff,

thank you very much for your idea! It's good and simple. It just breaks down for the case when a large folder got renamed.

But I already hacked the basic layout of the algorithm and it's not complicated at all, I believe:

https://github.com/thkoch2001/git_export_hardlinks/blob/master/git_export_hardlinks.py

I had to interrupt work on this and could not yet finish and test it. But I thought you might be interested. Maybe something like this might one day be rewritten in C and become part of git core?

Regards,
Thomas Koch, http://www.koch.ro
Previous: Jeff KingNext: Jeff King
Message 3 of 5 in “[Request] Git export with hardlinks”
  1. Thomas KochFeb 6, 2013
  2. Jeff KingFeb 8, 2013
  3. Thomas KochFeb 10, 2013
  4. Jeff KingFeb 11, 2013
  5. [ANN] First beta: Git export with hardlinksThomas Koch, Feb 13, 2013

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.