def get_files_to_commit(autooptions):
workingdir = autooptions['<STR_LIT>']<EOL>includes = autooptions['<STR_LIT>']['<STR_LIT>']<EOL>excludes = autooptions['<STR_LIT>']['<STR_LIT>']<EOL>includes = r'<STR_LIT:|>'.join([fnmatch.translate(x) for x in includes])<EOL>excludes = r'<STR_LIT:|>'.join([fnmatch.translate(x) for x in excludes]) or r'<STR_LIT>'<EOL>matched_files = []<EOL>for root, dirs, files in os.walk(workingdir):<EOL><INDENT>dirs[:] = [d for d in dirs if not re.match(excludes, d)]<EOL>files = [f for f in files if not re.match(excludes, f)]<EOL>files = [f for f in files if re.match(includes, f)]<EOL>files = [os.path.join(root, f) for f in files]<EOL>matched_files.extend(files)<EOL><DEDENT>return matched_files<EOL>
Look through the local directory to pick up files to check