author | Jan Krüger <jk@jk.gs> | |
Mon, 27 Feb 2012 22:10:38 +0000 (23:10 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 27 Feb 2012 23:58:36 +0000 (15:58 -0800) | ||
commit | 42b00599be684e20462c431a718f86c2b6fce575 | |
tree | 81d9579d42fbc12ea8dd3013f24319b6bce17531 | tree | snapshot |
parent | 3724cc7c58df709cffbf6cc0701d1ca6fa5a5ba2 | commit | diff |
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>
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 | diff | blob | history | |
builtin/symbolic-ref.c | diff | blob | history |