Re: [PATCH 1/3] retain reflogs for deleted refs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 20, 2012, 15:42 UTC
- Message-ID
- <7vliietp4u.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120720144337.GA31946@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
> But it would mean that you cannot naively run > > echo $sha1 >.git/refs/heads/foo > > anymore. I suspect that the packed-refs conversion rooted out many > scripts that did not use update-ref and rev-parse to access refs, but > the above does still work today. So I suspect there would be some > fallout. Not to mention that older versions of git would be completely > broken, which would mean we need a lengthy deprecation period while > everybody upgrades to versions of git that support the reading side.
We have that "core.repositoryversion" thing, so we could treat it just like "update-index --index-version 4" to make it a "flag day event for each repository, on the day of end-user's choice".