diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2012-02-22 15:15:35 -0800 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2012-02-22 15:15:35 -0800 |
| commit | 0534641dfec001794ae9a83cfd1cfc7acaef97b7 (patch) | |
| tree | d17e72af0ae9a9435aef29cc388d50a67a3cc0b0 /src/path.h | |
| parent | da337c806468d2d8a27dfa9ee5e75e476f5ad546 (diff) | |
| download | libgit2-0534641dfec001794ae9a83cfd1cfc7acaef97b7.tar.gz | |
Fix iterators based on pull request feedback
This update addresses all of the feedback in pull request #570.
The biggest change was to create actual linked list stacks for
storing the tree and workdir iterator state. This cleaned up
the code a ton. Additionally, all of the static functions had
their 'git_' prefix removed, and a lot of other unnecessary
changes were removed from the original patch.
Diffstat (limited to 'src/path.h')
| -rw-r--r-- | src/path.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/path.h b/src/path.h index 7a4f1f4fd..abe6c2217 100644 --- a/src/path.h +++ b/src/path.h @@ -143,20 +143,18 @@ extern int git_path_contains(git_buf *dir, const char *item); * * @param parent Directory path that might contain subdir * @param subdir Subdirectory name to look for in parent - * @param append_if_exists If true, then subdir will be appended to the parent path if it does exist * @return GIT_SUCCESS if subdirectory exists, < 0 otherwise. */ -extern int git_path_contains_dir(git_buf *parent, const char *subdir, int append_if_exists); +extern int git_path_contains_dir(git_buf *parent, const char *subdir); /** * Check if the given path contains the given file. * * @param dir Directory path that might contain file * @param file File name to look for in parent - * @param append_if_exists If true, then file will be appended to the path if it does exist * @return GIT_SUCCESS if file exists, < 0 otherwise. */ -extern int git_path_contains_file(git_buf *dir, const char *file, int append_if_exists); +extern int git_path_contains_file(git_buf *dir, const char *file); /** * Clean up path, prepending base if it is not already rooted. |
