Re: [PATCH v4] for-each-ref: `:short` format for `refname`
- From
Bert Wesarg <bert.wesarg@googlemail.com>
- Date
- Sep 9, 2008, 06:52 UTC
- Message-ID
- <36ca99e90809082352q3c87447eme73379673fe652f4@mail.gmail.com>
- In-Reply-To
- <7vfxoadz5c.fsf@gitster.siamese.dyndns.org>
On Tue, Sep 9, 2008 at 00:57, Junio C Hamano <gitster@pobox.com> wrote:
Show 5 quoted lines
> Any followup on this topic since: > > http://thread.gmane.org/gmane.comp.version-control.git/94478/focus=95041 > >
I plan on looking at the refs/remote test today.
Any opinions, whether we want the 'strict' mode? i.e.:
for refs/heads/xyzzy and refs/tags/xyzzy:
loose mode (current implementation):
refs/heads/xyzzy => heads/xyzzy refs/tags/xyzzy => xyzzy
there would be a ambiguous warning (if enabled) if you use xyzzy as a tag, but it resolves correctly to the tag.
strict mode:
refs/heads/xyzzy => heads/xyzzy refs/tags/xyzzy => tags/xyzzy
will always produce a non-ambiguous short forms.
Bert