diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-16 09:57:45 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-16 09:57:45 -0700 |
| commit | c261c272af7fa26af36bca71e56b0342631b3eea (patch) | |
| tree | 4b4e6efe8871844b40c8c4ec82321ada515f594d /src/tree.h | |
| parent | b206d74ccaca2bca33e5db85fb6c1e4b8fc54541 (diff) | |
| parent | 2c8339172878cd935eee0d9eb6db747cebd70a72 (diff) | |
| download | libgit2-c261c272af7fa26af36bca71e56b0342631b3eea.tar.gz | |
Merge pull request #702 from arrbee/fix-status-file
Update git_status_file and add ranged iterators
Diffstat (limited to 'src/tree.h')
| -rw-r--r-- | src/tree.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tree.h b/src/tree.h index fd00afde5..a5b7f6323 100644 --- a/src/tree.h +++ b/src/tree.h @@ -38,4 +38,14 @@ GIT_INLINE(unsigned int) entry_is_tree(const struct git_tree_entry *e) void git_tree__free(git_tree *tree); int git_tree__parse(git_tree *tree, git_odb_object *obj); +/** + * Lookup the first position in the tree with a given prefix. + * + * @param tree a previously loaded tree. + * @param prefix the beginning of a path to find in the tree. + * @return index of the first item at or after the given prefix. + */ +int git_tree_entry_prefix_position(git_tree *tree, const char *prefix); + + #endif |
