summaryrefslogtreecommitdiff
path: root/tests-clar/index/reuc.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-372/+0
|
* Make diff and status perform soft index reloadRussell Belfer2013-11-011-2/+0
| | | | | | | | | | | | | | | | | | | | | This changes `git_index_read` to have two modes - a hard index reload that always resets the index to match the on-disk data (which was the old behavior) and a soft index reload that uses the timestamp / file size information and only replaces the index data if the file on disk has been modified. This then updates the git_status code to do a soft reload unless the new GIT_STATUS_OPT_NO_REFRESH flag is passed in. This also changes the behavior of the git_diff functions that use the index so that when an index is not explicitly passed in (i.e. when the functions call git_repository_index for you), they will also do a soft reload for you. This intentionally breaks the file signature of git_index_read because there has been some confusion about the behavior previously and it seems like all existing uses of the API should probably be examined to select the desired behavior.
* Fix trailing whitespacesnulltoken2013-05-151-17/+17
|
* move NAME and REUC extensions to sys/Edward Thomson2013-04-301-0/+1
|
* clear REUC on checkoutEdward Thomson2013-03-041-0/+85
|
* Use cl_assert_equal_s() instead of strcmp().Sebastian Bauer2013-01-251-11/+11
| | | | | Replaced all cl_assert(!strcmp()) or semantically equivalent forms by cl_assert_equal_s().
* REUC needs to handle empty sidesEdward Thomson2013-01-101-0/+50
|
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-231-0/+2
| | | | | | | | | | | | Without this change, any failed assertion in the second (or a later) test inside a test suite has a chance of double deleting memory, resulting in a heap corruption. See #1096 for details. This leaves alone the test cases where we "just" use cl_git_sandbox_init() and cl_git_sandbox_cleanup(). These methods already take good care to not double delete a repository. Fixes #1096
* index refactoringEdward Thomson2012-10-291-0/+236