summaryrefslogtreecommitdiff
path: root/tests-clar/index/tests.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-537/+0
|
* move mode_t to filebuf_open instead of _commitEdward Thomson2013-11-041-3/+3
|
* Convert git_index_read to have a "force" flagRussell Belfer2013-11-011-13/+14
| | | | | This is a little more intuitive than the turned-around option that I originally wrote.
* Make diff and status perform soft index reloadRussell Belfer2013-11-011-7/+7
| | | | | | | | | | | | | | | | | | | | | 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.
* index: Make _read() cope with index file creationnulltoken2013-10-041-0/+50
|
* Tabify indentationsnulltoken2013-10-041-8/+8
|
* index: report when it's lockedCarlos Martín Nieto2013-08-191-0/+25
| | | | | | | Report the index being locked with its own error code in order to be able to differentiate, as a locked index is typically the result of a crashed process or concurrent access, both of which often require user intervention to fix.
* Test has to work on case sensitive systemsRussell Belfer2013-06-171-3/+14
|
* some simple case-sensitive index testsEdward Thomson2013-06-171-0/+32
|
* Test fixes and cleanupRussell Belfer2013-03-251-8/+10
| | | | | | | | This fixes some places where the new tests were leaving the test area in a bad state or were freeing data they should not free. It also removes code that is extraneous to the core issue and fixes an invalid SHA being looked up in one of the tests (which was failing, but for the wrong reason).
* Added some tests for issue #1397Sven Strickroth2013-03-251-0/+40
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Vector improvements and their falloutPhilip Kelley2013-01-271-5/+6
|
* add an index_remove_bypath that removes conflicts, renamed add_from_workdir ↵Edward Thomson2013-01-121-9/+9
| | | | to match
* Add index API to remove all files in a directoryRussell Belfer2013-01-041-0/+83
| | | | This adds the git_index_remove_directory API plus tests.
* Proper cleanup jeezVicent Marti2013-01-031-43/+40
|
* Move test cleanup into cleanup functionsBen Straub2013-01-031-1/+5
|
* Tests should clean up after themselvesBen Straub2013-01-031-0/+1
|
* Fix warnings on Win64 buildRussell Belfer2012-11-271-4/+4
|
* API updates for index.hBen Straub2012-11-271-1/+1
|
* Add a test for invalid filenames while writing tree from indexfilename-validationScott J. Goldman2012-11-181-0/+27
|
* index: refine add_from_workdir() error reportnulltoken2012-11-101-0/+13
|
* index refactoringEdward Thomson2012-10-291-2/+6
|
* misc: Fix warnings from PVS Studio trialVicent Martí2012-06-071-1/+1
|
* errors: Rename error codesbreaking-changesVicent Martí2012-05-181-1/+1
|
* errors: Rename the generic return codesVicent Martí2012-05-181-3/+3
|
* Update test suiteVicent Martí2012-05-021-1/+1
|
* tests-clar/index: actually assert resultschu2012-04-031-0/+2
| | | | Signed-off-by: schu <schu-github@schulog.org>
* tests: Cleanup & fix test suiteVicent Martí2012-04-031-1/+0
|
* Discovered cl_git_strequal! Mounted a crusade!Ben Straub2012-03-311-1/+1
|
* Moved more assertions inside Clar test helpers.Ben Straub2012-03-311-16/+10
|
* Cleaned up build issues under Linux. Had to disable a file-mode checkBen Straub2012-03-301-3/+3
| | | | in tag/write.c.
* t08_tag.c ported.Ben Straub2012-03-301-15/+15
| | | | Also cleaned up some names for things that used to be macros.
* t06_index.c ported.Ben Straub2012-03-301-0/+251