diff options
author | Vicent Martà <vicent@github.com> | 2013-01-16 15:52:58 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-01-16 15:52:58 -0800 |
commit | 34a4ad46e8ff306dca989bb591dc415e38480064 (patch) | |
tree | b84359af2edebcb1444aea931a4d76dab97ef622 /include/git2/tree.h | |
parent | 4b45675d7c014719cf5d46870f6d369eb08d0b1c (diff) | |
parent | fffe429a20b68677cae940ba8a9a0ff60056d6c0 (diff) | |
download | libgit2-34a4ad46e8ff306dca989bb591dc415e38480064.tar.gz |
Merge pull request #1211 from arrbee/fix-icase-status-file
Fix case insensitivity issues in git_status_file
Diffstat (limited to 'include/git2/tree.h')
-rw-r--r-- | include/git2/tree.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h index 7726a6599..3861102d9 100644 --- a/include/git2/tree.h +++ b/include/git2/tree.h @@ -209,6 +209,15 @@ GIT_EXTERN(git_otype) git_tree_entry_type(const git_tree_entry *entry); GIT_EXTERN(git_filemode_t) git_tree_entry_filemode(const git_tree_entry *entry); /** + * Compare two tree entries + * + * @param e1 first tree entry + * @param e2 second tree entry + * @return <0 if e1 is before e2, 0 if e1 == e2, >0 if e1 is after e2 + */ +GIT_EXTERN(int) git_tree_entry_cmp(const git_tree_entry *e1, const git_tree_entry *e2); + +/** * Convert a tree entry to the git_object it points too. * * You must call `git_object_free()` on the object when you are done with it. |