show-ref: allow -d to work with --verify
commitf1627040b9305dc38994f799c172393909b2c70c
authorVladimir Panteleev <git@thecybershadow.net>
Mon, 23 Jan 2017 18:00:56 +0000 (23 18:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jan 2017 20:06:29 +0000 (23 12:06 -0800)
treef40356f1b99e24683e4013a1beb7009202a5aa85
parentec7c51bc6bda0a836b4955962becedbb702bbc43
show-ref: allow -d to work with --verify

Move handling of -d into show_one(), so that it takes effect when
--verify is present as well as when it is absent. This is useful when
the user wishes to avoid the costly iteration of refs.

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