Turn on sparse-index feature within `git-rm` command.
Add necessary modifications and test them.
Shaoxuan Yuan (4):
t1092: add tests for `git-rm`
pathspec.h: move pathspec_needs_expanded_index() from reset.c to here
rm: expand the index only when necessary
rm: integrate with sparse-index
builtin/reset.c | 84 +---------------------
builtin/rm.c | 7 +-
pathspec.c | 89 ++++++++++++++++++++++++
pathspec.h | 12 ++++
t/perf/p2000-sparse-operations.sh | 1 +
t/t1092-sparse-checkout-compatibility.sh | 73 ++++++++++++++++++-
6 files changed, 180 insertions(+), 86 deletions(-)
base-commit: 350dc9f0e8974b6fcbdeb3808186c5a79c3e7386
--
2.37.0