aboutsummaryrefslogtreecommitdiff
path: root/builtin/ls-files.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-05-05 12:53:30 -0700
committerJunio C Hamano <gitster@pobox.com>2017-05-06 19:15:39 +0900
commita0bba65b107651946431bee4c71d05d812988d9d (patch)
tree2fdf86ac431244039da96a9d46127b073ff8d6f6 /builtin/ls-files.c
parente799ed408eb59ca631c4908ba4236cd146ff6bd2 (diff)
downloadgit-a0bba65b107651946431bee4c71d05d812988d9d.tar.gz
git-a0bba65b107651946431bee4c71d05d812988d9d.tar.xz
dir: convert is_excluded to take an index
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/ls-files.c')
-rw-r--r--builtin/ls-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-files.c b/builtin/ls-files.c
index a6c70dbe9..7a8c5681b 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)