On 1/24/2020 4:42 PM, Jeff King wrote: > And ultimately the flow would be something like: > > - read input > - if argument is from command-line, use it verbatim > - else if reading stdin with "-z", use it verbatim > - else if line starts with double-quote, unquote_c_style() > - else use line verbatim > - the result is a single pristine filename > - fill hashset with pristine filenames > - generate pattern list to write to sparse file, escaping filenames as > necessary according to sparse-pattern rules > > Obviously you don't have a "-z" yet, but I think it's something we'd > probably want in the long run. And anything coming from the command-line > shouldn't need quoting to get it to us either (and so we'd need to > escape before writing to the sparse file). This recommendation came async with my v2, so I'll follow shortly with a v3 that uses this flow. I have something that I think works, after slightly adapting my tests, but now I need to make sure that all the patches still make sense and build cleanly. Thanks, -Stolee