diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2015-04-29 14:04:01 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2015-05-01 12:31:26 -0400 |
| commit | 7ef005f165518a9f76774c392fa2895dc1b34c96 (patch) | |
| tree | fe5ecffcfef5cab943916ea467bc177d6aeb8218 /src/path.h | |
| parent | ba8ef18a53b89c02df012cb80b01e195f478aada (diff) | |
| download | libgit2-7ef005f165518a9f76774c392fa2895dc1b34c96.tar.gz | |
git_path_dirload_with_stat: moved to fs_iterator
Diffstat (limited to 'src/path.h')
| -rw-r--r-- | src/path.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/path.h b/src/path.h index ff743f626..4900dceb0 100644 --- a/src/path.h +++ b/src/path.h @@ -379,42 +379,6 @@ extern int git_path_dirload( size_t prefix_len, uint32_t flags); -typedef struct { - struct stat st; - size_t path_len; - char path[GIT_FLEX_ARRAY]; -} git_path_with_stat; - -extern int git_path_with_stat_cmp(const void *a, const void *b); -extern int git_path_with_stat_cmp_icase(const void *a, const void *b); - -/** - * Load all directory entries along with stat info into a vector. - * - * This adds four things on top of plain `git_path_dirload`: - * - * 1. Each entry in the vector is a `git_path_with_stat` struct that - * contains both the path and the stat info - * 2. The entries will be sorted alphabetically - * 3. Entries that are directories will be suffixed with a '/' - * 4. Optionally, you can be a start and end prefix and only elements - * after the start and before the end (inclusively) will be stat'ed. - * - * @param path The directory to read from - * @param prefix_len The trailing part of path to prefix to entry paths - * @param flags GIT_PATH_DIR flags from above - * @param start_stat As optimization, only stat values after this prefix - * @param end_stat As optimization, only stat values before this prefix - * @param contents Vector to fill with git_path_with_stat structures - */ -extern int git_path_dirload_with_stat( - const char *path, - size_t prefix_len, - uint32_t flags, - const char *start_stat, - const char *end_stat, - git_vector *contents); - enum { GIT_PATH_NOTEQUAL = 0, GIT_PATH_EQUAL = 1, GIT_PATH_PREFIX = 2 }; /* |
