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

Re: git prune pig slow

From
Linus Torvalds <torvalds@osdl.org>
Date
Jul 29, 2006, 23:48 UTC
Message-ID
<Pine.LNX.4.64.0607291647030.4168@g5.osdl.org>
In-Reply-To
<20060729224106.12312.qmail@science.horizon.com>
On Sat, 29 Jul 2006, linux@horizon.com wrote:
> 
> No, that's dangerous too.  The index file is considered part of the root
> set for git-fsck-objects, but not for git-repack.
Indeed.

Although at least you won't lose any history - at worst you'll have to basically do a "git reset HEAD" to make things right again.

I was careful when I wrote the new git-prune to take the index into account, but I'd forgotten about it wrt the "git repack -a -d" suggestion.

		Linus
Previous: linux@horizon.com
Message 2 of 2 in “Re: git prune pig slow”
  1. linux@horizon.comJul 29, 2006
  2. Linus TorvaldsJul 29, 2006

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.