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

Re: Retrospectively add alternates to a repository?

From
Jeff King <peff@peff.net>
Date
May 22, 2010, 05:38 UTC
Message-ID
<20100522053846.GA29118@coredump.intra.peff.net>
In-Reply-To
<AANLkTin5igmPVoISyyj2DtRV6OWagDq-boBkP6Zqq_z-@mail.gmail.com>
On Sun, May 16, 2010 at 04:55:21PM +0300, Felipe Contreras wrote:
Show 12 quoted lines
> On Sat, Feb 27, 2010 at 3:30 PM, Jeff King <peff@peff.net> wrote:
> > On Sat, Feb 27, 2010 at 11:43:55AM +0000, Steve Folly wrote:
> >> attach =
> >>     echo "/path/to/mirror" > .git/objects/info/alternates &&
> >>     git repack -adl &&
> >>     git repack -ad &&
> >>     git repack -adl
> >
> > I don't think the first repack is doing anything (I showed it in my
> > example only to show that it was not actually working).
> 
> That's a bug, isn't it? Has anyone taken a look into it?

Yes, it's a bug. I don't think anybody is looking at it. I started to write a length explanation, but the more I thought about it, the more I am not actually sure what is going on. So please, if you are interested, take a look and see if you can come up with a patch.

-Peff
Previous: Felipe Contreras
Message 7 of 7 in “Retrospectively add alternates to a repository?”
  1. Steve FollyFeb 26, 2010
  2. Tay Ray ChuanFeb 27, 2010
  3. Jeff KingFeb 27, 2010
  4. Steve FollyFeb 27, 2010
  5. Jeff KingFeb 27, 2010
  6. Felipe ContrerasMay 16, 2010
  7. Jeff KingMay 22, 2010

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.