diff options
author | Brandon Williams <bmwill@google.com> | 2017-05-11 15:04:27 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-12 14:23:46 +0900 |
commit | 08de9151a8a67f29a3a5a36931298237d78ca736 (patch) | |
tree | e592ee783330d7e4f73315706f56a9cf46a15857 /builtin/check-ignore.c | |
parent | 2249d4dbc197d45da5407cbc80b2461e49bb8785 (diff) | |
download | git-08de9151a8a67f29a3a5a36931298237d78ca736.tar.gz |
pathspec: convert find_pathspecs_matching_against_index to take an indexbw/pathspec-sans-the-index
Convert find_pathspecs_matching_against_index to take an index
parameter.
In addition mark pathspec.c with NO_THE_INDEX_COMPATIBILITY_MACROS now
that it doesn't use any cache macros or reference 'the_index'.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/check-ignore.c')
-rw-r--r-- | builtin/check-ignore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/check-ignore.c b/builtin/check-ignore.c index 91040a4b04..7629018a56 100644 --- a/builtin/check-ignore.c +++ b/builtin/check-ignore.c @@ -98,7 +98,7 @@ static int check_ignore(struct dir_struct *dir, * should not be ignored, in order to be consistent with * 'git status', 'git add' etc. */ - seen = find_pathspecs_matching_against_index(&pathspec); + seen = find_pathspecs_matching_against_index(&pathspec, &the_index); for (i = 0; i < pathspec.nr; i++) { full_path = pathspec.items[i].match; exclude = NULL; |