]> git.proxmox.com Git - libgit2.git/commit
iterator: combine fs+workdir iterators more completely
authorEdward Thomson <ethomson@github.com>
Thu, 10 Mar 2016 05:04:26 +0000 (00:04 -0500)
committerEdward Thomson <ethomson@github.com>
Wed, 23 Mar 2016 21:16:37 +0000 (17:16 -0400)
commit0e0589fcc383a0ca96d342896103e01d715df755
tree90e0518ec567eade47a5ed4e6c07e9edb94162f6
parentd051de243c28be01525d1bb2f2e716fd000892d8
iterator: combine fs+workdir iterators more completely

Drop some of the layers of indirection between the workdir and the
filesystem iterators.  This makes the code a little bit easier to
follow, and reduces the number of unnecessary allocations a bit as
well.  (Prior to this, when we filter entries, we would allocate them,
filter them and then free them; now we do the filtering before
allocation.)

Also, rename `git_iterator_advance_over_with_status` to just
`git_iterator_advance_over`.  Mostly because it's a fucking long-ass
function name otherwise.
src/checkout.c
src/diff.c
src/iterator.c
src/iterator.h