git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lukas Sandström" <lukass@etek.chalmers.se>
To: Git Mailing List <git@vger.kernel.org>
Cc: Franck <vagabon.xyz@gmail.com>
Subject: Re: [QUESTION] Access to a huge GIT repository.
Date: Sat, 19 Nov 2005 13:45:27 +0100	[thread overview]
Message-ID: <437F1E67.8020302@etek.chalmers.se> (raw)
In-Reply-To: <cda58cb80511190423w1e46bf5bu@mail.gmail.com>

Franck wrote:
> 2005/11/17, Linus Torvalds <torvalds@osdl.org>:
> 
>>>On Thu, 17 Nov 2005, Franck wrote:
>>>
>>>ok that's what I was trying to do by killing the parent object.  Now
>>>when looking a the graph using gitk all old objects have been removed.
>>>But I'm suprised because the git repository is the same size as it was
>>>before pruning all old objects. Can you explain why ?
>>
>>make sure you re-pack if it was packed. "git prune" will not remove packs
>>at all, so..
>>
> 
> 
> I just looked at git-prune script and it seems to remove unreachable
> objects only in .git/objects/[0-9a-f][0-9a-f] directories, not in pack
> files.
> 
> Then by running git-repack -a -d, I build a new small pack that
> contains only latest objects, but then the script runs
> git-redundant-pack script which erases the new small one since all its
> objects are included in the old big one. Is that correct ? If so
> git-redundant-pack script could return the oldest redundant ?
> 
> Thanks
> --
>                Franck

The reason the old pack is kept instead of the new one is that it
is a proper superset of the new one. 

The "git-repack -a -d" case is fixed in Junios master, and I have sent out
a patch which lets you pipe git-fsck-objects --full --unreachable to
git-pack-redundant in the other cases, so the problem should hopefully
be resolved shortly.

/Lukas

  reply	other threads:[~2005-11-19 12:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-16 12:24 [QUESTION] Access to a huge GIT repository Franck
2005-11-16 16:46 ` Linus Torvalds
2005-11-17 10:36   ` Franck
2005-11-17 16:23     ` Linus Torvalds
2005-11-17 21:47       ` Franck
2005-11-17 22:44         ` Linus Torvalds
2005-11-19 12:23           ` Franck
2005-11-19 12:45             ` Lukas Sandström [this message]
2005-11-19 20:42               ` Junio C Hamano
2005-11-19 17:56             ` Linus Torvalds
2005-11-19 19:52               ` Junio C Hamano
2005-11-21 20:11                 ` Franck
2005-11-21 20:45                   ` Junio C Hamano
2005-11-22  9:22                     ` Franck
2005-11-22  9:50                       ` Junio C Hamano
2005-11-22 10:40                         ` Franck
2005-11-22 17:06                           ` Junio C Hamano
2005-11-22 19:10                             ` Franck
2005-11-16 18:24 ` Junio C Hamano
2005-11-16 20:01   ` Martin Langhoff
2005-11-16 20:10     ` Linus Torvalds
2005-11-16 20:35     ` Junio C Hamano

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=437F1E67.8020302@etek.chalmers.se \
    --to=lukass@etek.chalmers.se \
    --cc=git@vger.kernel.org \
    --cc=vagabon.xyz@gmail.com \
    /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).