]> git.proxmox.com Git - libgit2.git/commit - tests/libgit2/diff/workdir.c
diff: use new iterator pathlist handling
authorEdward Thomson <ethomson@edwardthomson.com>
Sun, 30 Aug 2015 21:06:26 +0000 (17:06 -0400)
committerEdward Thomson <ethomson@edwardthomson.com>
Sun, 30 Aug 2015 21:06:26 +0000 (17:06 -0400)
commit4a0dbeb0d35343ded24b51906f2a8f8ef6c7910b
tree2ccbd7c102ff4e4aa2b0b63469a77832b0e276dd
parent3273ab3f0b04d673b9515b149674d5716939d9a5
diff: use new iterator pathlist handling

When using literal pathspecs in diff with `GIT_DIFF_DISABLE_PATHSPEC_MATCH`
turn on the faster iterator pathlist handling.

Updates iterator pathspecs to include directory prefixes (eg, `foo/`)
for compatibility with `GIT_DIFF_DISABLE_PATHSPEC_MATCH`.
src/diff.c
src/iterator.c
src/iterator.h
src/merge.c
tests/diff/workdir.c
tests/repo/iterator.c