summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2016-05-02 17:36:58 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2016-05-17 17:41:05 +0200
commit9464f9ebc1794314421353e10eeddfa8a950f7ab (patch)
treeb01f97aa81d5b0e9108bd45747f1584c96e1bacb /src/commit.c
parentc148533024319689fca016f7c452d556265bb13f (diff)
downloadlibgit2-9464f9ebc1794314421353e10eeddfa8a950f7ab.tar.gz
Introduce a function to create a tree based on a different onecmn/tree-update
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.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions