author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Wed, 19 Mar 2008 00:27:42 +0000 (00:27 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 20 Mar 2008 00:33:30 +0000 (17:33 -0700) | ||
commit | 740fdd27f0888d5c80ef6a550734bdc53febd2df | |
tree | 756cad7b6c49779627d2a08f4e1140835ab82643 | tree | snapshot |
parent | a811e4f0f023d88596adbf39674a18d34b2f152d | commit | diff |
remote show: do not show symbolic refs
For symbolic refs, a sane notion of being "stale" is that the ref
they point to no longer exists. Since this is checked already,
"remote show" does not need to show them at all.
Incidentally, this fixes the issue that "HEAD" was shown as a
stale ref by "remote show" in a freshly cloned repository.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
For symbolic refs, a sane notion of being "stale" is that the ref
they point to no longer exists. Since this is checked already,
"remote show" does not need to show them at all.
Incidentally, this fixes the issue that "HEAD" was shown as a
stale ref by "remote show" in a freshly cloned repository.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-remote.c | diff | blob | history | |
t/t5505-remote.sh | diff | blob | history |