Code

symbolic-ref --short: abbreviate the output unambiguously
authorJan Krüger <jk@jk.gs>
Mon, 27 Feb 2012 22:10:38 +0000 (23:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2012 23:58:36 +0000 (15:58 -0800)
commit42b00599be684e20462c431a718f86c2b6fce575
tree81d9579d42fbc12ea8dd3013f24319b6bce17531
parent3724cc7c58df709cffbf6cc0701d1ca6fa5a5ba2
symbolic-ref --short: abbreviate the output unambiguously

It can be helpful to resolve a symbolic ref and output the result in a
shortened form, such as for use in shell prompts.  Add a "--short" option
to do so.

Signed-off-by: Jan Krüger <jk@jk.gs>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-symbolic-ref.txt
builtin/symbolic-ref.c