Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC/PATCH 3/2] rev-parse: --abbrev-ref option to shorten ref name

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:36

Bert Wesarg [off-list ref] writes:
This applies the shorten_unambiguous_ref function to the object name.
Default mode is controlled by core.warnAmbiguousRefs. Else it is given as
optional argument to --abbrev-ref={strict|loose}.

This should be faster than 'git for-each-ref --format="%(refname:short)" <ref>'
for single refs.

Signed-off-by: Bert Wesarg <redacted>
---
Cc: Jeff King <redacted>
Cc: git@vger.kernel.org

Can someone check, if I need to alter the filter, thanks.
I do not think so.

This --abbrev-ref option is similar to --symbolic in that how a ref from
the command line, if any, is output, and should not change the filter at
all.  For example, "rev-parse --abbrev-ref master -M" shouldn't filter -M
out by implying --revs-only.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help