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/tree.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/tree.c')
-rw-r--r-- | src/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c index 8bc17d975..f21490235 100644 --- a/src/tree.c +++ b/src/tree.c @@ -30,7 +30,7 @@ static int entry_sort_cmp(const void *a, const void *b) const git_tree_entry *entry_a = (const git_tree_entry *)(a); const git_tree_entry *entry_b = (const git_tree_entry *)(b); - return git_futils_cmp_path( + return git_path_cmp( entry_a->filename, entry_a->filename_len, entry_is_tree(entry_a), entry_b->filename, entry_b->filename_len, entry_is_tree(entry_b)); } |