pathspec: always show mnemonic and name in unsupported_magic
commit2aee5849c9b3698b65d74bc354f3cee7213add35
authorBrandon Williams <bmwill@google.com>
Wed, 4 Jan 2017 18:04:03 +0000 (4 10:04 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jan 2017 02:04:17 +0000 (8 18:04 -0800)
tree285dc283ef56523e9f236682ba6dd37b8db7236d
parent93f3ddb2a19264f59cda752d5c0ed81d96cdc6cc
pathspec: always show mnemonic and name in unsupported_magic

For better clarity, always show the mnemonic and name of the unsupported
magic being used.  This lets users have a more clear understanding of
what magic feature isn't supported.  And if they supplied a mnemonic,
the user will be told what its corresponding name is which will allow
them to more easily search the man pages for that magic type.

This also avoids passing an extra parameter around the pathspec
initialization code.

Signed-off-by: Brandon Williams <bmwill@google.com>
Reviewed-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pathspec.c