Introduce a function to create a tree based on a different one
Instead of going through the usual steps of reading a tree recursively into an index, modifying it and writing it back out as a tree, introduce a function to perform simple updates more efficiently. `git_tree_create_updated` avoids reading trees which are not modified and supports upsert and delete operations. It is not as versatile as modifying the index, but it makes some common operations much more efficient.
Showing
tests/object/tree/update.c
0 → 100644
Please
register
or
sign in
to comment