From: Junio C Hamano Date: Mon, 13 Apr 2009 16:43:42 GMT Subject: Re: [RFC/PATCH 3/2] rev-parse: --abbrev-ref option to shorten ref name Message-ID: <7vhc0sh5c1.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1239621626-26952-1-git-send-email-bert.wesarg@googlemail.com> Bert Wesarg 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)" ' > for single refs. > > Signed-off-by: Bert Wesarg > --- > Cc: Jeff King > 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.