Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-01-10 04:03:35 +0400
committerRussell Belfer <rb@github.com>2013-01-15 21:51:35 +0400
commit98527b5b241ce9d240537f60e87aa9dd084c0f36 (patch)
tree912502b10f4d8ba992647bebff93960c140a303e /src/tree.h
parent23594c1dae08c9a53f571dbf9de7ff0b6a6a0d45 (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.h2
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);