Re: [PATCH v2] pathspec: advice: long and short forms are incompatible
Junio C Hamano <gitster@pobox.com> writes:
Show 18 quoted lines
>> +static const char mixed_pathspec_magic[] = N_(
>> + "'%.*s...': cannot mix shortform magic with longform [e.g. like :(glob)].\n"
>
> OK. Just a bit of bikeshedding.
>
> cannot mix short and long form magic
> cannot mix shortform magic with longform
>
> The former is a bit shorter. Also, if we show (with %.*s) the
> actual beginning of their attempt, e.g. when they gave us [*]
>
> git show -- ':!(global,icase)foo'
>
> if we show
> ...
> ':!(...': cannot mix short and long form pathspec magic
>
> it may be sufficiently clear where the problem is.
I meant "clear where the problem is, without adding [e.g. like :(glob)]".
Thanks.