ref-filter: use contains_result enum consistently
commita0262c51d0f36678a8c6143a9c73d2058fd6ad57
authorJeff King <peff@peff.net>
Thu, 9 Mar 2017 13:28:48 +0000 (9 08:28 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Mar 2017 19:51:30 +0000 (10 11:51 -0800)
tree6e7b19ebe8e3b39fd0c25df4a4b1b750c5ac8eba
parent4d4bc41411242028d5670f8f1b305fcd1a7671ad
ref-filter: use contains_result enum consistently

Commit cbc60b672 (git tag --contains: avoid stack overflow,
2014-04-24) adapted the -1/0/1 contains status into a
tri-state enum. However, some of the code still used the
numeric values, or assumed that no/yes correspond to C's
boolean true/false.

Let's switch to using the symbolic values everywhere, which
will make it easier to change them.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c