]> git.proxmox.com Git - libgit2.git/commit
Git trees are now always lazily sorted
authorVicent Marti <tanoku@gmail.com>
Mon, 7 Feb 2011 16:25:42 +0000 (18:25 +0200)
committerVicent Marti <tanoku@gmail.com>
Mon, 7 Feb 2011 16:25:42 +0000 (18:25 +0200)
commit122c3405830d116f23bf92b879263220be585871
tree2955067bf9465bb685b03a8115e660c71b17e723
parent8212e2d7d0fec7e53efddc7e23fc65798afa12a3
Git trees are now always lazily sorted

Removed `git_tree_add_entry_unsorted`. Now the `git_tree_add_entry`
method doesn't sort the entries array by default; entries are only
sorted lazily when required. This is done automatically by the library
(the `git_tree_sort_entries` call has been removed).

This should improve performance. No point on sorting entries all the time, anyway.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
src/git2/tree.h
src/tree.c