diff options
author | Russell Belfer <rb@github.com> | 2012-10-30 09:40:50 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-10-30 09:40:50 -0700 |
commit | db106d01f093b3e61170e3738d6651a2866cb76e (patch) | |
tree | 0028e57a8490841e60f7b84ce2a3abe0634d54c3 /src/diff.h | |
parent | b4f5bb074721823cc016b66a9984abe2c271cb1f (diff) | |
download | libgit2-db106d01f093b3e61170e3738d6651a2866cb76e.tar.gz |
Move rename detection into new file
This improves the naming for the rename related functionality
moving it to be called `git_diff_find_similar()` and renaming
all the associated constants, etc. to make more sense.
I also moved the new code (plus the existing `git_diff_merge`)
into a new file `diff_tform.c` where I can put new functions
related to manipulating git diff lists.
This also updates the implementation significantly from the
last revision fixing some ordering issues (where break-rewrite
needs to be handled prior to copy and rename detection) and
improving config option handling.
Diffstat (limited to 'src/diff.h')
-rw-r--r-- | src/diff.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h index 61723bc9e..ed66439bf 100644 --- a/src/diff.h +++ b/src/diff.h @@ -48,6 +48,8 @@ extern void git_diff__cleanup_modes( extern void git_diff_list_addref(git_diff_list *diff); +extern int git_diff_delta__cmp(const void *a, const void *b); + extern bool git_diff_delta__should_skip( const git_diff_options *opts, const git_diff_delta *delta); |