author | Johannes Sixt <johannes.sixt@telecom.at> | |
Fri, 23 May 2008 14:13:05 +0000 (16:13 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 23 May 2008 22:52:20 +0000 (15:52 -0700) | ||
commit | e00f3790b88ce61f1bdc863011a122b98b43197e | |
tree | 6809a130203b95cc36516bf8b2c9dd2bababf4c4 | tree | snapshot |
parent | e77b0b5d0fdac411607dbae11ccad87dccd332d3 | commit | diff |
rev-parse --symbolic-full-name: don't print '^' if SHA1 is not a ref
The intention of --symbolic-full-name is to not print anything if a
revision is not an exact ref. But this command:
$ git-rev-parse --symbolic-full-name --not master~1
still emitted a sole '^' to stdout (provided that there's no other ref at
master~1). This fixes it.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The intention of --symbolic-full-name is to not print anything if a
revision is not an exact ref. But this command:
$ git-rev-parse --symbolic-full-name --not master~1
still emitted a sole '^' to stdout (provided that there's no other ref at
master~1). This fixes it.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rev-parse.c | diff | blob | history |