diff options
author | Pierre-Olivier Latour <pol@mac.com> | 2014-12-02 05:11:12 -0800 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-01-14 10:17:56 -0600 |
commit | 36fc5497810f60cacdfab249c84583d25032a150 (patch) | |
tree | 2bc5b09b87564b4946c5283f9c7d2df29c5e2e0c /tests/clar_libgit2.h | |
parent | d147900ea4756975effa6cb568f932a4e3eb698f (diff) | |
download | libgit2-36fc5497810f60cacdfab249c84583d25032a150.tar.gz |
Added GIT_HASHSIG_ALLOW_SMALL_FILES to allow computing signatures for small files
The implementation of the hashsig API disallows computing a signature on
small files containing only a few lines. This new flag disables this
behavior.
git_diff_find_similar() sets this flag by default which means that rename
/ copy detection of small files will now work. This in turn affects the
behavior of the git_status and git_blame APIs which will now detect rename
of small files assuming the right options are passed.
Diffstat (limited to 'tests/clar_libgit2.h')
-rw-r--r-- | tests/clar_libgit2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/clar_libgit2.h b/tests/clar_libgit2.h index f51554293..e1d62c820 100644 --- a/tests/clar_libgit2.h +++ b/tests/clar_libgit2.h @@ -112,6 +112,7 @@ void cl_git_append2file(const char *filename, const char *new_content); void cl_git_rewritefile(const char *filename, const char *new_content); void cl_git_write2file(const char *path, const char *data, size_t datalen, int flags, unsigned int mode); +void cl_git_rmfile(const char *filename); bool cl_toggle_filemode(const char *filename); bool cl_is_chmod_supported(void); |