]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/tree.c
treebuilder: don't keep removed entries around
authorCarlos Martín Nieto <cmn@dwim.me>
Mon, 9 Jun 2014 20:45:23 +0000 (22:45 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Tue, 10 Jun 2014 13:14:13 +0000 (15:14 +0200)
commit978fbb4c345e944004e5a2aede17cdd17ab75356
tree6dd372da3af53f313cf20ffa0f5957dc5a572fd6
parent4d3f1f97404b01cd00ad5b2f47f64672d787e901
treebuilder: don't keep removed entries around

If the user wants to keep a copy for themselves, they should make a
copy. It adds unnecessary complexity to make sure the returned entries
are valid until the builder is cleared.
include/git2/tree.h
src/tree.c
src/tree.h