libgit2

git_tree_entry_cmp

Version:

Compare two tree entries

Signature

int git_tree_entry_cmp(const git_tree_entry *e1, const git_tree_entry *e2);

Parameters

In
e1

first tree entry

In
e2

second tree entry

Returns

int

< 0 if e1 is before e2, 0 if e1 == e2, >0 if e1 is after e2

Versions