Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH] for-each-ref: `:short` format for `refname`

From: Bert Wesarg <hidden>
Date: 2016-06-15 22:45:16

Possibly related (same subject, not in this thread)

On Mon, Sep 1, 2008 at 23:28, Junio C Hamano [off-list ref] wrote:
"Bert Wesarg" [off-list ref] writes:
quoted
On Mon, Sep 1, 2008 at 21:10, Shawn O. Pearce [off-list ref] wrote:
...
quoted
You can still get ambiguous names.  Avoiding them requires going
through all refs and building their short forms, then using the
full ref name for any ref which had more than one name shorten to
the same string.  Ugly, but implementable, and probably something
that should be considered.
What about: try the list backwards until the first match, than try the
matched part (this what %.*s matched) with the forward list, if both
give the same pattern, its not disambiguous. If not try the next
pattern backwards.
How does it catch the case where you have both 'xyzzy' branch and 'xyzzy'
tag, which is the point of disambiguation issue Shawn raised?
Right.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help