show-ref: detect dangling refs under --verify as well
commitd01b8203ec24732e5e8829db44a8150468f2fb7d
authorVladimir Panteleev <git@thecybershadow.net>
Mon, 23 Jan 2017 18:00:58 +0000 (23 18:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jan 2017 20:06:29 +0000 (23 12:06 -0800)
treea880b715baf5ab1ae3f6cdce781644a5b0a14bf2
parent14144d3b53b913b48970aa0947accfe34e745c0f
show-ref: detect dangling refs under --verify as well

Move detection of dangling refs into show_one(), so that they are
detected when --verify is present as well as when it is absent.

Signed-off-by: Vladimir Panteleev <git@thecybershadow.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/show-ref.c
t/t1403-show-ref.sh