Re: ghost refs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff King <peff <at> peff.net> writes:
> On Wed, Apr 07, 2010 at 12:58:33PM -0400, Avery Pennarun wrote:
> 
> > This is on purpose, based on the theory that you don't want to lose
> > data from your local repo just because someone (accidentally?) deletes
> > a branch on the remote server.  Unfortunately, this theory is a bit
> > flawed, since someone could just as easily overwrite the remote branch
> > with a totally different commit, and you'd still lose it in *that*
> > case.  So mostly it's just confusing.
> 
> You do have a reflog in the case of overwrite. Delete kills off any
> associated reflog (it would be cool if we had a "graveyard" reflog that
> kept deleted branch reflogs around for a while).

Wouldn't it jus be sufficient to keep reflogs on branch deletion, and let reflog
entries subject be expired by gc just like for any branch, so that way we may
only need to gc the reflog itself when it becomes empty ?

-- 
Yann

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]