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

git-relink status (or bug?)

From
MZMarc Zonzon <marc.zonzon+git@gmail.com>
Date
Jun 21, 2008, 10:36 UTC
Message-ID
<20080621103636.GA696@kernoel.dyndns.org>

When trying to use git-relink, I found it quite disappointing when going over packs. Git relink seem to make the assumption that there is a unique mapping from object name to object identity, which is of course acceptable for loose objects that are named with their sha-1 but false for .pack and .idx, to pack objects with the same name have contains the same objects but may be not packed in the same order, or compression. Moreover .idx files can not be considered alone, but depends on the associated .pack.

When it happen that you have two different packs with the same name but of different sizes, git relink does not hard link the .packs because the size differ, and hard link the idx. And your repository is corrupted.

It happen when you clone a repository, repack the clone and relink the clone to the original one.

I found very few information about git relink, but as it appears in changelog of v1.5.4 I suppose it is not obsoleted.

What about the use of this script?
Marc
Next: Junio C Hamano
Message 1 of 3 in “git-relink status (or bug?)”
  1. Marc ZonzonJun 21, 2008
  2. Junio C HamanoJun 21, 2008
  3. marc zonzonJun 21, 2008

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.