summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-01-16 15:52:58 -0800
committerVicent Martí <vicent@github.com>2013-01-16 15:52:58 -0800
commit34a4ad46e8ff306dca989bb591dc415e38480064 (patch)
treeb84359af2edebcb1444aea931a4d76dab97ef622 /include/git2/tree.h
parent4b45675d7c014719cf5d46870f6d369eb08d0b1c (diff)
parentfffe429a20b68677cae940ba8a9a0ff60056d6c0 (diff)
downloadlibgit2-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.h9
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.