show-ref: remove dead `if (verify)' check
As show_ref() is only ever called on the path where --verify is not specified, `verify' can never possibly be true here. Signed-off-by: Vladimir Panteleev <git@thecybershadow.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Vladimir Panteleev committed
Jan 23, 2017 at 18:00 UTC
02bdc9d9f6ef6ae2f304121a0cf169f7c50f2370
1 file changed
-3
builtin/show-ref.c
-3
@@ -73,9 +73,6 @@ static int show_ref(const char *refname, const struct object_id *oid,
73
continue;
74
if (len == reflen)
75
goto match;
76
- /* "--verify" requires an exact match */
77
- if (verify)
78
- continue;
76
if (refname[reflen - len - 1] == '/')
77
goto match;
78
}