diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2020-02-11 15:02:24 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-11 09:06:47 -0800 |
commit | ef07659926f64d70e8cb41025c3d7456eecb962e (patch) | |
tree | 975f25bbaaebd3a374888a7e169e8d4a14f3dc9a /dir.c | |
parent | sparse-checkout: create 'add' subcommand (diff) | |
download | tgif-ef07659926f64d70e8cb41025c3d7456eecb962e.tar.xz |
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 <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.c')
0 files changed, 0 insertions, 0 deletions