summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-02-24 17:43:10 -0800
committerEdward Thomson <ethomson@microsoft.com>2014-02-24 17:52:38 -0800
commit83634d38be2d0a1ac006d912216cd6787c2b1542 (patch)
tree9b13ce789492d17d2030992762959f36b8d89d71 /src/config.c
parent98b9366212ac6670bd5f90e70400e7cf09aea16a (diff)
downloadlibgit2-83634d38be2d0a1ac006d912216cd6787c2b1542.tar.gz
Move system directory cache out of utils
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/config.c b/src/config.c
index 6aa71468a..ae093ed64 100644
--- a/src/config.c
+++ b/src/config.c
@@ -6,7 +6,7 @@
*/
#include "common.h"
-#include "fileops.h"
+#include "sysdir.h"
#include "config.h"
#include "git2/config.h"
#include "git2/sys/config.h"
@@ -937,17 +937,17 @@ void git_config_iterator_free(git_config_iterator *iter)
int git_config_find_global(git_buf *path)
{
- return git_futils_find_global_file(path, GIT_CONFIG_FILENAME_GLOBAL);
+ return git_sysdir_find_global_file(path, GIT_CONFIG_FILENAME_GLOBAL);
}
int git_config_find_xdg(git_buf *path)
{
- return git_futils_find_xdg_file(path, GIT_CONFIG_FILENAME_XDG);
+ return git_sysdir_find_xdg_file(path, GIT_CONFIG_FILENAME_XDG);
}
int git_config_find_system(git_buf *path)
{
- return git_futils_find_system_file(path, GIT_CONFIG_FILENAME_SYSTEM);
+ return git_sysdir_find_system_file(path, GIT_CONFIG_FILENAME_SYSTEM);
}
int git_config__global_location(git_buf *buf)
@@ -956,7 +956,7 @@ int git_config__global_location(git_buf *buf)
const char *sep, *start;
size_t len;
- if (git_futils_dirs_get(&paths, GIT_FUTILS_DIR_GLOBAL) < 0)
+ if (git_sysdir_get(&paths, GIT_SYSDIR_GLOBAL) < 0)
return -1;
/* no paths, so give up */