'Check whether a path is explicitly included or excluded in ignores.
:param path: Path to check
:return: None if the file is not mentioned, True if it is included,
False if it is explicitly excluded.'

def is_ignored(self, path):

    matches = list(self.find_matching(path))
    if matches:
        return matches[(-1)].is_exclude
    return None
