]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
dir.c: remove an implicit dependency on the_index in pathspec code
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 13 Aug 2018 16:14:22 +0000 (18:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 21:14:42 +0000 (14:14 -0700)
commit6d2df284e7f4d7cd9f46992282ef59a72a9db527
treee574b2e2c62144926ced7a251f82260a61211d16
parent7f944e264ebe2fcf9a2c228a9fc9463ab3274d39
dir.c: remove an implicit dependency on the_index in pathspec code

Make the match_patchspec API and friends take an index_state instead
of assuming the_index in dir.c. All external call sites are converted
blindly to keep the patch simple and retain current behavior.
Individual call sites may receive further updates to use the right
index instead of the_index.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
21 files changed:
archive.c
builtin/add.c
builtin/checkout.c
builtin/clean.c
builtin/commit.c
builtin/grep.c
builtin/ls-files.c
builtin/rm.c
builtin/submodule--helper.c
builtin/update-index.c
diff-lib.c
dir.c
dir.h
pathspec.c
preload-index.c
read-cache.c
rerere.c
resolve-undo.c
revision.c
submodule.c
wt-status.c