From: linux@horizon.com
To: git@vger.kernel.org
Cc: torvalds@osdl.org
Subject: Re: git prune pig slow
Date: 29 Jul 2006 18:41:06 -0400 [thread overview]
Message-ID: <20060729224106.12312.qmail@science.horizon.com> (raw)
> Btw, another alternative to "git prune" is actually to do
>
> git repack -a -d
>
> and then just delete all unpacked objects.
No, that's dangerous too. The index file is considered part of the root
set for git-fsck-objects, but not for git-repack.
Example script:
$ git-init-db
$ cat > hello.c
#include <stdio.h>
int
main(void)
{
puts("Hello, world!");
return 0;
}
$ git-update-index --add hello.c
$ git-repack -a -d
Generating pack...
Done counting 0 objects.
Nothing new to pack.
$ rm .git/objects/67/159ba959e0a0cd6157bf04d5dad66af59383c2
rm: remove write-protected regular file `.git/objects/67/159ba959e0a0cd6157bf04d5dad66af59383c2'? y
$ git commit
error: invalid object 67159ba959e0a0cd6157bf04d5dad66af59383c2
fatal: git-write-tree: error building trees
next reply other threads:[~2006-07-29 22:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-29 22:41 linux [this message]
2006-07-29 23:48 ` git prune pig slow Linus Torvalds
-- strict thread matches above, loose matches on Subject: below --
2006-07-29 9:02 Russell King
2006-07-29 11:40 ` Johannes Schindelin
2006-07-29 18:14 ` Linus Torvalds
2006-07-29 20:03 ` Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060729224106.12312.qmail@science.horizon.com \
--to=linux@horizon.com \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).