pathspec: create parse_element_magic helper
authorBrandon Williams <redacted>
Wed, 4 Jan 2017 18:04:08 +0000 (10:04 -0800)
committerJunio C Hamano <redacted>
Mon, 9 Jan 2017 02:04:18 +0000 (18:04 -0800)
commit1b6112c527be607f56a674301b413af16aa186c6
tree001be6b42d68b64f46cd6bfee50270edce50815d
parent8881fde01340e1fff4a3acc17805886b644d18d8
pathspec: create parse_element_magic helper

Factor out the logic responsible for the magic in a pathspec element
into its own function.

Also avoid calling into the parsing functions when
`PATHSPEC_LITERAL_PATH` is specified since it causes magic to be
ignored and all paths to be treated as literals.

Signed-off-by: Brandon Williams <redacted>
Reviewed-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
pathspec.c
git clone https://git.99rst.org/PROJECT