diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-01-17 15:49:47 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-01-17 15:49:47 -0800 |
commit | 1744fafec05d8fa3036a43f5e390c790810b05a5 (patch) | |
tree | b87f0616dd832ec66cc2450b5751b70d468a350e /src/index.c | |
parent | d1317f1b69cafb328ca9b263b2b71cddeb2290be (diff) | |
download | libgit2-1744fafec05d8fa3036a43f5e390c790810b05a5.tar.gz |
Move path related functions from fileops to path
This takes all of the functions that look up simple data about
paths (such as `git_futils_isdir`) and moves them over to path.h
(becoming `git_path_isdir`). This leaves fileops.h just with
functions that actually manipulate the filesystem or look at
the file contents in some way.
As part of this, the dir.h header which is really just for win32
support was moved into win32 (with some minor changes).
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c index 9e88012bb..66e7a81da 100644 --- a/src/index.c +++ b/src/index.c @@ -150,7 +150,7 @@ int git_index_open(git_index **index_out, const char *index_path) git_vector_init(&index->entries, 32, index_cmp); /* Check if index file is stored on disk already */ - if (git_futils_exists(index->index_file_path) == 0) + if (git_path_exists(index->index_file_path) == 0) index->on_disk = 1; *index_out = index; @@ -221,7 +221,7 @@ int git_index_read(git_index *index) assert(index->index_file_path); - if (!index->on_disk || git_futils_exists(index->index_file_path) < 0) { + if (!index->on_disk || git_path_exists(index->index_file_path) < 0) { git_index_clear(index); index->on_disk = 0; return GIT_SUCCESS; |