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

Re: Auto-repo-repair

From
Enrico Weigelt <enrico.weigelt@vnc.biz>
Date
Nov 22, 2012, 23:16 UTC
Message-ID
<cd8ee2cf-2d4a-4d0c-931f-61de4c7f6348@zcs>
In-Reply-To
<CAM9Z-n=tAcpQHTU7WHhzZkoVL_ar9vcH8G1tKd-026+djAiJ4A@mail.gmail.com>
Hi,
Show 12 quoted lines
> I still think that it would make the most sense to do the following
> (if you insist on some sort of automated repair):
> (1) Fetch a "good" clone (or clones) into a temporary directory;
> (2) Cannibalize the objects from it (them);
> (3) Re-run git fsck and check for still-missing / unreachable items;
> (4) IF THE RESULT OF (3) IS ACCEPTABLE, run git gc to clean up the
> mess, discard / "merge" duplicate objects, and fix up the packfiles.
> 
> It is step (4) that requires the most user interaction. I could see
> building up a shell script that does all but (4) nearly
> automatically.
> None of this requires modifying Git itself.

Well, I'd like to have some really automatic mode, which does everything ondemand.

Once we've got this not just for repair, but also to support quick partial clones that fetch more objects when required.

In fact, finally, I'd like to have some storage cloud where data automatically gets replicated to nodes which need the data, not just for VCS, but other purposes (backup, filestore, etc) too. But before inventing someting completely new (reinventing much of the wheel), I'd like to investigate whether git can be extended into this direction step by step.

cu
-- 
Mit freundlichen Grüßen / Kind regards 

Enrico Weigelt 
VNC - Virtual Network Consult GmbH 
Head Of Development 

Pariser Platz 4a, D-10117 Berlin
Tel.: +49 (30) 3464615-20
Fax: +49 (30) 3464615-59

enrico.weigelt@vnc.biz; www.vnc.de 
Previous: Drew Northup
Message 9 of 9 in “Auto-repo-repair”
  1. Enrico WeigeltNov 16, 2012
  2. Jeff KingNov 16, 2012
  3. Enrico WeigeltNov 17, 2012
  4. Drew NorthupNov 18, 2012
  5. Enrico WeigeltNov 18, 2012
  6. Drew NorthupNov 19, 2012
  7. Enrico WeigeltNov 19, 2012
  8. Drew NorthupNov 20, 2012
  9. Enrico WeigeltNov 22, 2012

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.