aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/ls-files.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-29 12:34:41 +0900
committerJunio C Hamano <gitster@pobox.com>2017-05-29 12:34:41 +0900
commit4eeed27e16c71ceecdf5a2d51af4099bb12ff775 (patch)
tree771f960fbcb7b98880e2625080b115ffe34f9b67 /builtin/ls-files.c
parentMerge branch 'sb/checkout-recurse-submodules' (diff)
parentdir: convert fill_directory to take an index (diff)
downloadgit-4eeed27e16c71ceecdf5a2d51af4099bb12ff775.tar.gz
git-4eeed27e16c71ceecdf5a2d51af4099bb12ff775.zip
Merge branch 'bw/dir-c-stops-relying-on-the-index'
API update. * bw/dir-c-stops-relying-on-the-index: dir: convert fill_directory to take an index dir: convert read_directory to take an index dir: convert read_directory_recursive to take an index dir: convert open_cached_dir to take an index dir: convert is_excluded to take an index dir: convert prep_exclude to take an index dir: convert add_excludes to take an index dir: convert is_excluded_from_list to take an index dir: convert last_exclude_matching_from_list to take an index dir: convert dir_add* to take an index dir: convert get_dtype to take index dir: convert directory_exists_in_index to take index dir: convert read_skip_worktree_file_from_index to take an index dir: stop using the index compatibility macros
Diffstat (limited to 'builtin/ls-files.c')
-rw-r--r--builtin/ls-files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/ls-files.c b/builtin/ls-files.c
index a6c70dbe9e..61271b52cf 100644
--- a/builtin/ls-files.c
+++ b/builtin/ls-files.c
@@ -322,7 +322,7 @@ static void show_ru_info(void)
static int ce_excluded(struct dir_struct *dir, const struct cache_entry *ce)
{
int dtype = ce_to_dtype(ce);
- return is_excluded(dir, ce->name, &dtype);
+ return is_excluded(dir, &the_index, ce->name, &dtype);
}
static void show_files(struct dir_struct *dir)
@@ -333,7 +333,7 @@ static void show_files(struct dir_struct *dir)
if (show_others || show_killed) {
if (!show_others)
dir->flags |= DIR_COLLECT_KILLED_ONLY;
- fill_directory(dir, &pathspec);
+ fill_directory(dir, &the_index, &pathspec);
if (show_others)
show_other_files(dir);
if (show_killed)