]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/tree.c
tree: use git_treebuilder to write the index as a tree
authorCarlos Martín Nieto <cmn@elego.de>
Wed, 31 Aug 2011 06:10:13 +0000 (08:10 +0200)
committerCarlos Martín Nieto <carlos@cmartin.tk>
Sat, 10 Sep 2011 00:05:38 +0000 (02:05 +0200)
commit4a619797ec16aeadba53590dce832238cb9a8447
tree487b059e5f5f3fcbb31190cb927e4d1ea2322df5
parent3f3f6225f8237e974b135de30eaac731c929936e
tree: use git_treebuilder to write the index as a tree

There is no point in reinventing the wheel when using the treebuilder
is much more straightforward and makes the code more readable. There
is no optimisation, and the performance is no worse than when writing
the tree object ourselves.
src/tree.c