Re: Question about git-prune

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Saturday, June 30, 2007 - 1:12 pm

walt <wa1ter@myrealbox.com> writes:


Of course it wouldn't; prune-packed is to prune loose objects
that also appear in packs.

What is happening is:

 - You create a pack that has everything reachable from refs at
   one point;

 - You pull or do your own development; the set of objects
   reachable from refs change from the above set.  This set is
   superset of the above only if there is no rewind is
   involved.  Otherwise, some objects already packed in the
   previous step are now unreachable.

 - git-prune and git-prune-packed are about removing loose
   objects.  They never go into existing packs and eradicate
   objects from them.

When you have unreachable cruft in packs, repacking is the only
way to rid them ("git repack -a -d", which is run by "git gc").


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Question about git-prune, walt, (Sat Jun 30, 9:29 am)
Re: Question about git-prune, Johannes Schindelin, (Sat Jun 30, 11:02 am)
Re: Question about git-prune, walt, (Sat Jun 30, 1:06 pm)
Re: Question about git-prune, Junio C Hamano, (Sat Jun 30, 1:12 pm)
Re: Question about git-prune, Johannes Schindelin, (Sat Jun 30, 1:18 pm)