]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: 'contents:trailers' show error if `:` is missing
authorHariom Verma <hariom18599@gmail.com>
Fri, 21 Aug 2020 21:06:14 +0000 (21:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
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 <chriscool@tuxfamily.org>
Mentored-by: Heba Waly <heba.waly@gmail.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Hariom Verma <hariom18599@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c
t/t6300-for-each-ref.sh