ref-filter: reject arguments to %(HEAD)
commitafc1a946b256a54ba4abf530f0a720393aad461e
authorJeff King <peff@peff.net>
Wed, 14 Dec 2022 16:18:49 +0000 (14 11:18 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Dec 2022 00:13:35 +0000 (15 09:13 +0900)
treeb6d85629d32ba512bc9f12bf09285ffbbc6a2be6
parent57e2c6ebbe7108b35ba30184dcbcb6c34c929ad8
ref-filter: reject arguments to %(HEAD)

The %(HEAD) atom doesn't take any arguments, but unlike other atoms in
the same boat (objecttype, deltabase, etc), it does not detect this
situation and complain. Let's make it consistent with the others.

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