]> git.proxmox.com Git - libgit2.git/commit - src/posix.h
Update diff to use iterators
authorRussell Belfer <arrbee@arrbee.com>
Wed, 29 Feb 2012 00:14:47 +0000 (16:14 -0800)
committerRussell Belfer <arrbee@arrbee.com>
Fri, 2 Mar 2012 23:49:29 +0000 (15:49 -0800)
commit74fa4bfae37e9d7c9e35550c881b114d7a83c4fa
tree98184643a8c42b1402e4b33f835eac424fe88768
parent760db29c456ef2029a81d577d95a3fafb37ce5c6
Update diff to use iterators

This is a major reorganization of the diff code.  This changes
the diff functions to use the iterators for traversing the
content.  This allowed a lot of code to be simplified.  Also,
this moved the functions relating to outputting a diff into a
new file (diff_output.c).

This includes a number of other changes - adding utility
functions, extending iterators, etc. plus more tests for the
diff code.  This also takes the example diff.c program much
further in terms of emulating git-diff command line options.
31 files changed:
examples/diff.c
include/git2/diff.h
include/git2/oid.h
include/git2/status.h
src/diff.c
src/diff.h
src/diff_output.c [new file with mode: 0644]
src/fileops.c
src/fileops.h
src/iterator.c
src/iterator.h
src/oid.c
src/path.c
src/path.h
src/posix.h
src/status.c
src/unix/posix.h
src/vector.c
src/vector.h
src/win32/dir.c
src/win32/dir.h
src/xdiff/xdiff.h
tests-clar/clar_libgit2.h
tests-clar/diff/diff_helpers.c
tests-clar/diff/diff_helpers.h
tests-clar/diff/iterator.c
tests-clar/diff/tree.c
tests-clar/diff/workdir.c [new file with mode: 0644]
tests-clar/status/status_data.h
tests-clar/status/worktree.c
tests/t18-status.c