diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2015-04-29 11:58:10 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2015-05-01 12:31:09 -0400 |
| commit | 07bbc045c77d47e8eb245d599f0f753ed62fea9b (patch) | |
| tree | d4432af330dbb324893e9509406c0dfc926c6e4b /src/path.h | |
| parent | edbfc52cdd8657371c53070c5e09b58e004bb67a (diff) | |
| download | libgit2-07bbc045c77d47e8eb245d599f0f753ed62fea9b.tar.gz | |
git_path_dirload: use git_path_diriter
Diffstat (limited to 'src/path.h')
| -rw-r--r-- | src/path.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/path.h b/src/path.h index 3a25d4aed..ff743f626 100644 --- a/src/path.h +++ b/src/path.h @@ -366,22 +366,18 @@ extern void git_path_diriter_free(git_path_diriter *diriter); * of strings. That vector can then be sorted, iterated, or whatever. * Remember to free alloc of the allocated strings when you are done. * + * @param contents Vector to fill with directory entry names. * @param path The directory to read from. * @param prefix_len When inserting entries, the trailing part of path * will be prefixed after this length. I.e. given path "/a/b" and * prefix_len 3, the entries will look like "b/e1", "b/e2", etc. - * @param alloc_extra Extra bytes to add to each string allocation in - * case you want to append anything funny. * @param flags Combination of GIT_PATH_DIR flags. - * @param contents Vector to fill with directory entry names. */ extern int git_path_dirload( + git_vector *contents, const char *path, size_t prefix_len, - size_t alloc_extra, - uint32_t flags, - git_vector *contents); - + uint32_t flags); typedef struct { struct stat st; |
