]> git.proxmox.com Git - libgit2.git/commit
Refine pluggable similarity API
authorRussell Belfer <rb@github.com>
Tue, 19 Feb 2013 18:25:41 +0000 (10:25 -0800)
committerRussell Belfer <rb@github.com>
Wed, 20 Feb 2013 23:09:41 +0000 (15:09 -0800)
commit9bc8be3d7e5134de1d912c7ef08d6207079bd8c1
treef4840ab516ccee1ce427201624b2deaff3d81c7b
parenta235e9d355c2188eb35efeac8147b2e8b626caa3
Refine pluggable similarity API

This plugs in the three basic similarity strategies for handling
whitespace via internal use of the pluggable API.  In so doing, I
realized that the use of git_buf in the hashsig API was not needed
and actually just made it harder to use, so I tweaked that API as
well.

Note that the similarity metric is still not hooked up in the
find_similarity code - this is just setting out the function that
will be used.
include/git2/diff.h
src/diff_tform.c
src/hashsig.c
src/hashsig.h
tests-clar/core/buffer.c