def default_user_ignore_filter_path(config): """Return default user ignore filter path. Args: config: A Config object Returns: Path to a global ignore file """ try: return config.get((b'core', ), b'excludesFile') except KeyError: pass return get_xdg_config_home_path('git', 'ignore')
def default_user_ignore_filter_path(config: Config) -> str: """Return default user ignore filter path. Args: config: A Config object Returns: Path to a global ignore file """ try: return config.get((b"core", ), b"excludesFile") except KeyError: pass return get_xdg_config_home_path("git", "ignore")