summaryrefslogtreecommitdiff
path: root/tests-clar/checkout/crlf.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-231/+0
|
* More filtering tests including orderRussell Belfer2013-09-171-4/+32
| | | | | | | | | | | This adds more tests of filters, including the ident filter when mixed with custom filters. I was able to combine with the reverse filter and demonstrate that the order of filter application with the default priority constants matches the order of core Git. Also, this fixes two issues in the ident filter: preventing ident expansion on binary files and avoiding a NULL dereference when dollar sign characters are found without Id.
* Some tests with ident and crlf filtersRussell Belfer2013-09-171-0/+65
| | | | | | | | | | | | | | Fixed the filter order to match core Git, too. This test demonstrates an interesting behavior of core Git (which is totally reasonable and which libgit2 matches, although mostly by coincidence). If you use the ident filter and commit a file with a garbage ident in it, like '$Id: this is just garbage$' and then immediately do a 'git checkout-index' with the new file, Git will not consider the file out of date and will not overwrite the file with an updated $Id$. Libgit2 has the same behavior. If you remove the file and then do a checkout-index, it will be replaced with a filtered version that has injected the OID correctly.
* Start of filter API + git_blob_filtered_contentRussell Belfer2013-09-171-10/+1
| | | | | | | | | | This begins the process of exposing git_filter objects to the public API. This includes: * new public type and API for `git_buffer` through which an allocated buffer can be passed to the user * new API `git_blob_filtered_content` * make the git_filter type and GIT_FILTER_TO_... constants public
* Fix up checkout file contents checksRussell Belfer2013-03-251-23/+23
| | | | | | | | | | | | This fixes of the file contents checks in checkout to give slightly better error messages by directly calling the underlying clar assertions so the file and line number of the top level call can be reported correctly, and renames the helpers to not start with "test_" since that is kind of reserved by clar. This also enables some of the CRLF tests on all platforms that were previously Windows only (by pushing a check of the native line endings into the test body).
* don't convert CRLF to CRCRLFEdward Thomson2013-03-251-1/+45
|
* Added some tests for issue #1397Sven Strickroth2013-03-251-0/+8
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Add cl_repo_set_bool and cleanup testsRussell Belfer2013-03-221-21/+4
| | | | | | This adds a helper function for the cases where you want to quickly set a single boolean config value for a repository. This allowed me to remove a lot of code.
* tests: Remove useless codenulltoken2013-02-051-5/+0
|
* Fix 3 memory leaksPhilip Kelley2013-01-251-0/+1
|
* tests-clar: ifdef GIT_WIN32 win helper functionsMichael Schubert2013-01-251-0/+2
|
* add a git config, don't run crlf tests on non-win32Edward Thomson2013-01-171-0/+8
|
* cache should contain on-disk (filtered) file sizeEdward Thomson2013-01-171-0/+106