diff options
author | Russell Belfer <rb@github.com> | 2013-01-10 04:03:35 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-01-15 21:51:35 +0400 |
commit | 98527b5b241ce9d240537f60e87aa9dd084c0f36 (patch) | |
tree | 912502b10f4d8ba992647bebff93960c140a303e /src/tree.h | |
parent | 23594c1dae08c9a53f571dbf9de7ff0b6a6a0d45 (diff) |
Add git_tree_entry_cmp and git_tree_entry_icmp
This adds a new external API git_tree_entry_cmp and a new internal
API git_tree_entry_icmp for sorting tree entries. The case
insensitive one is internal only because general users should
never be seeing case-insensitively sorted trees.
Diffstat (limited to 'src/tree.h')
-rw-r--r-- | src/tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tree.h b/src/tree.h index 6f05f5a7a..27afd4fd4 100644 --- a/src/tree.h +++ b/src/tree.h @@ -39,6 +39,8 @@ GIT_INLINE(bool) git_tree_entry__is_tree(const struct git_tree_entry *e) return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr)); } +extern int git_tree_entry_icmp(const git_tree_entry *e1, const git_tree_entry *e2); + void git_tree__free(git_tree *tree); int git_tree__parse(git_tree *tree, git_odb_object *obj); |