ref-filter: 'contents:trailers' show error if `:` is missing
authorHariom Verma <redacted>
Fri, 21 Aug 2020 21:06:14 +0000 (21:06 +0000)
committerJunio C Hamano <redacted>
Fri, 21 Aug 2020 21:46:22 +0000 (14:46 -0700)
commit2c22e102f8cae598061be509344c6fdaf99c7db7
tree1d1734e63ff9fc4518ae61bac9b1d2f5af6ea37e
parenta8e0f50edc8c4203834587541eed842497e83287
ref-filter: 'contents:trailers' show error if `:` is missing

The 'contents' atom does not show any error if used with 'trailers'
atom and colon is missing before trailers arguments.

e.g %(contents:trailersonly) works, while it shouldn't.

It is definitely not an expected behavior.

Let's fix this bug.

Mentored-by: Christian Couder <redacted>
Mentored-by: Heba Waly <redacted>
Helped-by: Eric Sunshine <redacted>
Signed-off-by: Hariom Verma <redacted>
Signed-off-by: Junio C Hamano <redacted>
ref-filter.c
t/t6300-for-each-ref.sh
git clone https://git.99rst.org/PROJECT