git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
d01b820
)
show-ref: remove dead `if (verify)' check
author
Vladimir Panteleev
<redacted>
Mon, 23 Jan 2017 18:00:59 +0000
(18:00 +0000)
committer
Junio C Hamano
<redacted>
Mon, 23 Jan 2017 20:06:30 +0000
(12:06 -0800)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/show-ref.c
patch
|
blob
|
history
diff --git
a/builtin/show-ref.c
b/builtin/show-ref.c
index 107d05fe0e9bdddf8103d369dd7044cda297d7f6..2dfcb5634cb38abbc85f6b9131e20fe38a737dbe 100644
(file)
--- a/
builtin/show-ref.c
+++ b/
builtin/show-ref.c
@@
-73,9
+73,6
@@
static int show_ref(const char *refname, const struct object_id *oid,
continue;
if (len == reflen)
goto match;
- /* "--verify" requires an exact match */
- if (verify)
- continue;
if (refname[reflen - len - 1] == '/')
goto match;
}
git clone https://git.99rst.org/PROJECT