diff options
author | Russell Belfer <rb@github.com> | 2013-09-24 10:11:20 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-09-24 10:11:20 -0700 |
commit | 634f10f69090b325a50c8bca6cb303397576305e (patch) | |
tree | 7728cd252fd6377749b593654d88d89270a66a73 /tests-clar/clar_libgit2.h | |
parent | a3c2d916d8ad67196d2211b0a88dcbab7a433764 (diff) | |
download | libgit2-634f10f69090b325a50c8bca6cb303397576305e.tar.gz |
Fix incorrect return code in crlf filter
The git_buf_text_gather_stats call returns a boolean indicating if
the file looks like binary data. That shouldn't be an error; it
should be used to skip CRLF processing though.
Diffstat (limited to 'tests-clar/clar_libgit2.h')
-rw-r--r-- | tests-clar/clar_libgit2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests-clar/clar_libgit2.h b/tests-clar/clar_libgit2.h index c37306bc4..9d4d63e6c 100644 --- a/tests-clar/clar_libgit2.h +++ b/tests-clar/clar_libgit2.h @@ -78,7 +78,8 @@ void clar__assert_equal_file( void cl_git_mkfile(const char *filename, const char *content); 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 *filename, const char *new_content, int flags, unsigned int mode); +void cl_git_write2file(const char *path, const char *data, + size_t datalen, int flags, unsigned int mode); bool cl_toggle_filemode(const char *filename); bool cl_is_chmod_supported(void); |