summaryrefslogtreecommitdiff
path: root/alloc.h
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2021-12-22 14:20:53 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-22 11:42:40 -0800
commit78087097b8b77aca355525ebaf98205eb7acad60 (patch)
tree5acd4a9234f38e3859b1dfdf168a9eeb8545d102 /alloc.h
parentfetch/pull: use the sparse index (diff)
downloadtgif-78087097b8b77aca355525ebaf98205eb7acad60.tar.xz
ls-files: add --sparse option
Existing callers to 'git ls-files' are expecting file names, not directories. It is best to expand a sparse index to show all of the contained files in this case. However, expert users may want to inspect the contents of the index itself including which directories are sparse. Add a --sparse option to allow users to request this information. During testing, I noticed that options such as --modified did not affect the output when the files in question were outside the sparse-checkout definition. Tests are added to document this preexisting behavior and how it remains unchanged with the sparse index and the --sparse option. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'alloc.h')
0 files changed, 0 insertions, 0 deletions