Revision de11951b0393500cbf20d3e2bcd2e605d757ea8f authored by Derrick Stolee on 30 December 2019, 15:33:12 UTC, committed by Junio C Hamano on 30 December 2019, 17:07:18 UTC
When core.sparseCheckoutCone is enabled, the 'git sparse-checkout set' command takes a list of directories as input, then creates an ordered list of sparse-checkout patterns such that those directories are recursively included and all sibling entries along the parent directories are also included. Listing the patterns is less user-friendly than the directories themselves. In cone mode, and as long as the patterns match the expected cone-mode pattern types, change the output of 'git sparse-checkout list' to only show the directories that created the patterns. With this change, the following piped commands would not change the working directory: git sparse-checkout list | git sparse-checkout set --stdin The only time this would not work is if core.sparseCheckoutCone is true, but the sparse-checkout file contains patterns that do not match the expected pattern types for cone mode. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 761e3d2
File | Mode | Size |
---|---|---|
bitmap.c | -rw-r--r-- | 4.1 KB |
ewah_bitmap.c | -rw-r--r-- | 10.8 KB |
ewah_io.c | -rw-r--r-- | 3.8 KB |
ewah_rlw.c | -rw-r--r-- | 2.6 KB |
ewok.h | -rw-r--r-- | 5.6 KB |
ewok_rlw.h | -rw-r--r-- | 3.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...