edk2toollib/gitignore_parser.py
def parse_gitignore_lines(lines: list, full_path: str, base_dir: str):
    """ parse a list of lines matching gitignore syntax
    """
    counter = 0
    rules = []
    for line in lines:
        counter += 1
        line = line.rstrip('\n')
        rule = rule_from_pattern(line, abspath(base_dir),
                                 source=(full_path, counter))
        if rule:
            rules.append(rule)
    return lambda file_path: any(r.match(file_path) for r in rules)
 parse a list of lines matching gitignore syntax
    
parse a list of lines matching gitignore syntax
parse a list of lines matching gitignore syntax
def parse_gitignore_lines(lines: list, full_path: str, base_dir: str):
    counter = 0
    rules = []
    for line in lines:
        counter += 1
        line = line.rstrip('\n')
        rule = rule_from_pattern(line, abspath(base_dir),
                                 source=(full_path, counter))
        if rule:
            rules.append(rule)
    return lambda file_path: any(r.match(file_path) for r in rules)
def parse_gitignore_lines ( lines : list , full_path : str , base_dir : str ) : counter = 0 rules = [ ] for line in lines : counter += 1 line = line . rstrip ( '\n' ) rule = rule_from_pattern ( line , abspath ( base_dir ) , source = ( full_path , counter ) ) if rule : rules . append ( rule ) return lambda file_path : any ( r . match ( file_path ) for r in rules )
parse a list of lines matching gitignore syntax
parse a list of lines matching gitignore syntax
""" parse a list of lines matching gitignore syntax
    """
lines
list
full_path
str
base_dir
str