* git-repack && git-prune-packed isn't doing it's job anymore?
@ 2006-03-04 0:29 Martin Langhoff
2006-03-04 0:53 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Martin Langhoff @ 2006-03-04 0:29 UTC (permalink / raw)
To: Git Mailing List
$ find .git/objects -type f | grep -v pack | wc -l
3297
$ git-repack && git-prune-packed
Generating pack...
Done counting 664 objects.
Deltifying 664 objects.
100% (664/664) done
Writing 664 objects.
100% (664/664) done
Total 664, written 664 (delta 384), reused 0 (delta 0)
Pack pack-f38c51a5d5194d6a2f6e711586b9a51980c8d524 created.
$ find .git/objects -type f | grep -v pack | wc -l
2583
Strange! This is from todays master,
$ git --version
git version 1.2.4.g0a60
cheers,
martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-repack && git-prune-packed isn't doing it's job anymore?
2006-03-04 0:29 git-repack && git-prune-packed isn't doing it's job anymore? Martin Langhoff
@ 2006-03-04 0:53 ` Junio C Hamano
2006-03-04 1:01 ` Martin Langhoff
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2006-03-04 0:53 UTC (permalink / raw)
To: Martin Langhoff; +Cc: git
"Martin Langhoff" <martin.langhoff@gmail.com> writes:
> $ find .git/objects -type f | grep -v pack | wc -l
> 3297
> $ git-repack && git-prune-packed
> Generating pack...
> Done counting 664 objects.
> Deltifying 664 objects.
> 100% (664/664) done
> Writing 664 objects.
> 100% (664/664) done
> Total 664, written 664 (delta 384), reused 0 (delta 0)
> Pack pack-f38c51a5d5194d6a2f6e711586b9a51980c8d524 created.
> $ find .git/objects -type f | grep -v pack | wc -l
> 2583
The last one would be "git count-objects", but repack packs
things that are reachable from your refs and prune-packed
removes what are in packs, so perhaps these are unreachable
objects? I'd imagine fsck-objects would say they are dangling.
If that is the case, "git prune" would be the right tool to use.
And this is not something that changed recently.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-repack && git-prune-packed isn't doing it's job anymore?
2006-03-04 0:53 ` Junio C Hamano
@ 2006-03-04 1:01 ` Martin Langhoff
0 siblings, 0 replies; 3+ messages in thread
From: Martin Langhoff @ 2006-03-04 1:01 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On 3/4/06, Junio C Hamano <junkio@cox.net> wrote:
> If that is the case, "git prune" would be the right tool to use.
Spot on. Thanks!
> And this is not something that changed recently.
Of course, my bad. I had not seen this before. I guess it was because
I hadn't actually paid much attention at leftover objects in
oft-rebased repositories. I used to look at the .git/objects directory
a lot in my early git days, when I didn't do any rebasing.
thanks again!
martin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-04 1:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-04 0:29 git-repack && git-prune-packed isn't doing it's job anymore? Martin Langhoff
2006-03-04 0:53 ` Junio C Hamano
2006-03-04 1:01 ` Martin Langhoff
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).