sparse-checkout: work with Windows paths
authorDerrick Stolee <redacted>
Tue, 11 Feb 2020 15:02:24 +0000 (15:02 +0000)
committerJunio C Hamano <redacted>
Tue, 11 Feb 2020 17:06:47 +0000 (09:06 -0800)
commitef07659926f64d70e8cb41025c3d7456eecb962e
tree975f25bbaaebd3a374888a7e169e8d4a14f3dc9a
parent2631dc879d59aa08095bc4fb5bc9bcc491a787e9
sparse-checkout: work with Windows paths

When using Windows, a user may run 'git sparse-checkout set A\B\C'
to add the Unix-style path A/B/C to their sparse-checkout patterns.
Normalizing the input path converts the backslashes to slashes before we
add the string 'A/B/C' to the recursive hashset.

Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/sparse-checkout.c
t/t1091-sparse-checkout-builtin.sh
git clone https://git.99rst.org/PROJECT