diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-05-11 14:24:01 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-11 14:24:01 -0700 |
commit | 558e5a8c40944a6a952c7e15dab648b922e0bd02 (patch) | |
tree | 0416da7b9ef7b43c3d5e5bf766507b43735db5d3 /dir.c | |
parent | 7cb5073fcaffe8a8c0572fdffb332110b0eaae69 (diff) | |
parent | 846e5dfbab5d5a0a85252c1400dc0371e02e75a8 (diff) | |
download | git-558e5a8c40944a6a952c7e15dab648b922e0bd02.tar.gz |
Merge branch 'pt/xdg-config-path'
Code clean-up for xdg configuration path support.
* pt/xdg-config-path:
path.c: remove home_config_paths()
git-config: replace use of home_config_paths()
git-commit: replace use of home_config_paths()
credential-store.c: replace home_config_paths() with xdg_config_home()
dir.c: replace home_config_paths() with xdg_config_home()
attr.c: replace home_config_paths() with xdg_config_home()
path.c: implement xdg_config_home()
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1671,14 +1671,11 @@ int remove_dir_recursively(struct strbuf *path, int flag) void setup_standard_excludes(struct dir_struct *dir) { const char *path; - char *xdg_path; dir->exclude_per_dir = ".gitignore"; path = git_path("info/exclude"); - if (!excludes_file) { - home_config_paths(NULL, &xdg_path, "ignore"); - excludes_file = xdg_path; - } + if (!excludes_file) + excludes_file = xdg_config_home("ignore"); if (!access_or_warn(path, R_OK, 0)) add_excludes_from_file(dir, path); if (excludes_file && !access_or_warn(excludes_file, R_OK, 0)) |