general improvements
[gitweb.git] / builtin / check-ignore.c
index 28b8f14999f506f68926d43f6c4e91046ef3c9ff..5a4f92395f371438cbfc0582c77666622b9c0b3d 100644 (file)
@@ -106,7 +106,7 @@ static int check_ignore(struct dir_struct *dir,
                pattern = NULL;
                if (!seen[i]) {
                        int dtype = DT_UNKNOWN;
-                       pattern = last_exclude_matching(dir, &the_index,
+                       pattern = last_matching_pattern(dir, &the_index,
                                                        full_path, &dtype);
                }
                if (!quiet && (pattern || show_non_matching))