]> git.proxmox.com Git - libgit2.git/commit - src/diff_tform.c
Reorganize diff and add basic diff driver
authorRussell Belfer <rb@github.com>
Mon, 10 Jun 2013 17:10:39 +0000 (10:10 -0700)
committerRussell Belfer <rb@github.com>
Mon, 10 Jun 2013 17:10:39 +0000 (10:10 -0700)
commit114f5a6c41ea03393e00ae41126a6ddb0ef39a15
treef579e849a72749123a54483180726396244177b2
parent7000f3fa7bad25ec07355d6afb640ea272201dff
Reorganize diff and add basic diff driver

This is a significant reorganization of the diff code to break it
into a set of more clearly distinct files and to document the new
organization.  Hopefully this will make the diff code easier to
understand and to extend.

This adds a new `git_diff_driver` object that looks of diff driver
information from the attributes and the config so that things like
function content in diff headers can be provided.  The full driver
spec is not implemented in the commit - this is focused on the
reorganization of the code and putting the driver hooks in place.

This also removes a few #includes from src/repository.h that were
overbroad, but as a result required extra #includes in a variety
of places since including src/repository.h no longer results in
pulling in the whole world.
52 files changed:
docs/diff-internals.md [new file with mode: 0644]
src/blob.c
src/checkout.c
src/clone.c
src/crlf.c
src/diff.c
src/diff.h
src/diff_driver.c [new file with mode: 0644]
src/diff_driver.h [new file with mode: 0644]
src/diff_file.c [new file with mode: 0644]
src/diff_file.h [new file with mode: 0644]
src/diff_output.c [deleted file]
src/diff_output.h [deleted file]
src/diff_patch.c [new file with mode: 0644]
src/diff_patch.h [new file with mode: 0644]
src/diff_print.c
src/diff_tform.c
src/diff_xdiff.c [new file with mode: 0644]
src/diff_xdiff.h [new file with mode: 0644]
src/fetch.c
src/iterator.c
src/merge.c
src/refdb_fs.c
src/refs.c
src/remote.h
src/repository.c
src/repository.h
src/signature.c
src/stash.c
src/status.c
src/submodule.c
src/thread-utils.h
src/tree.c
src/util.h
tests-clar/checkout/index.c
tests-clar/clar.c
tests-clar/clone/nonetwork.c
tests-clar/diff/patch.c
tests-clar/diff/rename.c
tests-clar/diff/submodules.c
tests-clar/fetchhead/nonetwork.c
tests-clar/merge/merge_helpers.c
tests-clar/odb/alternates.c
tests-clar/online/clone.c
tests-clar/online/fetchhead.c
tests-clar/refs/delete.c
tests-clar/refs/pack.c
tests-clar/refs/reflog/reflog.c
tests-clar/refs/rename.c
tests-clar/repo/discover.c
tests-clar/status/ignore.c
tests-clar/status/worktree.c