git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-gc doesn't clean up leftover objects after git-filter-branch unless you clone first
@ 2008-04-23 15:41 Avery Pennarun
  2008-04-23 17:00 ` Junio C Hamano
  0 siblings, 1 reply; 12+ messages in thread
From: Avery Pennarun @ 2008-04-23 15:41 UTC (permalink / raw)
  To: Johannes Sixt; +Cc: Git Mailing List

On 4/23/08, Johannes Sixt <j.sixt@viscovery.net> wrote:
> Peter Karlsson schrieb:
> > [Not seeing any unreachable objects]
>
> > Jeff King:
> >> Did you remove refs/original/ ?
>  >
>  > That, and cloned the repository to a new location after the conversion,
>  > and removing the references to "origin" there. It does seem that the
>  > objects are still there, but I can't see them with "gitk --all".
>
> Did you clone locally? Then you must use the file:// protocol, otherwise
>  everything is hard-linked from the origin.

This question has come up at least once a week since I subscribed to
the list.  I can think of these solutions:

- Add a note to the git-gc and/or git-repack man page about how hidden
refs can impact the cleanup.

- Add an option to make git-clone *not* hardlink stuff; its different
behaviour for hardlinking vs. file:// seems to be very confusing.

- Make git-gc give a warning when there are some objects that are only
referenced via the reflog or refs/original.  (I suspect this would
trigger too often though.)

- Give git-gc a "really, I'm serious" option that makes it ignore the
reflog and refs/original.

Thoughts?

Avery

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-04-30  1:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-23 15:41 git-gc doesn't clean up leftover objects after git-filter-branch unless you clone first Avery Pennarun
2008-04-23 17:00 ` Junio C Hamano
2008-04-23 18:36   ` Avery Pennarun
2008-04-23 22:13   ` Jeff King
2008-04-24  1:28     ` Jeff King
2008-04-24 15:43       ` Avery Pennarun
2008-04-24 16:14         ` Jeff King
2008-04-24 16:59           ` Avery Pennarun
2008-04-29 20:45             ` [PATCH] Documentation: point git-prune users to git-gc Jeff King
2008-04-29 22:05               ` Junio C Hamano
2008-04-29 23:19                 ` Jeff King
2008-04-30  1:01                   ` Junio C Hamano

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).