Re: [PATCH v20 43/48] refs.c: move the check for valid refname to lock_ref_sha1_basic
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 20, 2014, 19:45 UTC
- Message-ID
- <xmqqk363t060.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <53F4B642.7020002@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
> I think we can get away with not including broken refnames when > iterating. After all, the main goal of tolerating them is to let them > be deleted, right?
Or read from a ref whose name has retroactively made invalid, in order to create a similar but validly named ref to serve as its replacement? So at least we need to give the users some way of reading from them, in addition to deleting them, no?