Refactor ignore_file_types and git_dir