Re: [PATCH 1/5] pathspec: add new function to parse file
On 05.11.2019 16:02, Phillip Wood wrote:
>> + if (!in)
>> + die(_("could not open '%s' for reading"), file);
>
> die_errno() would give a more informative message here>> + if (unquote_c_style(&unquoted, buf.buf, NULL))
>> + die(_("line is badly quoted"));
>
> It would be nice to show the offending line in the error messageShow 8 quoted lines
>> +void parse_pathspec_file(struct pathspec *pathspec,
>> + unsigned magic_mask,
>> + unsigned flags,
>> + const char *prefix,
>> + const char *file,
>> + int nul_term_line);
>
> Do these align with the 's' in "struct pathspec" ?
Sorry, still struggling with my VS that tries to do crazy things. Will fix.