summaryrefslogtreecommitdiff
path: root/tests-clar/revwalk/basic.c
Commit message (Collapse)AuthorAgeFilesLines
* Add long-file-name branch to test repoBen Straub2013-08-071-1/+1
|
* Update init and clean for revwalk::basic testsRussell Belfer2013-07-221-12/+38
| | | | | The new tests don't always want to use the same fixture data as the old ones so this makes it configurable on a per-test basis.
* git_reference_next_name must match git_reference_nextRussell Belfer2013-07-221-0/+22
| | | | | | | | | | The git_reference_next API silently skips invalid references when scanning the loose refs. The git_reference_next_name API should skip the same ones even though it isn't creating the reference object. This adds a test with a an invalid loose reference and makes sure that both APIs skip the same entries and generate the same results.
* revwalk: Parse revision rangesGreg Price2013-04-061-0/+12
| | | | | | All the hard work is already in revparse. Signed-off-by: Greg Price <price@mit.edu>
* revwalk: refactor tests a bitGreg Price2013-03-311-7/+11
| | | | Signed-off-by: Greg Price <price@mit.edu>
* revwalk tests: better diagram of example repoGreg Price2013-03-311-7/+6
| | | | | | | | | | | The purported command output was already inaccurate, as the refs aren't where it shows. In any event, the labels a reader of this file really needs are the indices used in commit_sorting_*, to make it possible to understand them by referring directly from those arrays to the diagram rather than from the index arrays, to commit_ids, to the diagram. Add those. Signed-off-by: Greg Price <price@mit.edu>
* 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
* revwalk: refuse push of non-commit objectsMichael Schubert2012-08-271-0/+8
| | | | | Check the type of the pushed object immediately instead of starting the walk and failing in between.
* tests: add test commit with angle brackets in the author namenulltoken2012-07-111-2/+2
|
* errors: Rename the generic return codesVicent Martí2012-05-181-6/+6
|
* revwalk: add test hiding a commit without a merge baseCarlos Martín Nieto2012-04-121-0/+16
| | | | | Nothing should be hidden and this shouldn't bother the merge base calculation.
* revwalk: allow pushing/hiding a reference by nameCarlos Martín Nieto2012-04-121-3/+2
| | | | | | The code was already there, so factor it out and let users push an OID by giving it a reference name. Only refs to commits are supported. Annotated tags will throw an error.
* Simple test for pushing HEAD and hiding a branchCarlos Martín Nieto2012-02-271-0/+17
|
* revwalk: add convenience function to push/hide HEADCarlos Martín Nieto2012-02-271-0/+15
| | | | | | It's not unusual to want the walker to act on HEAD, so add a convencience function for the case that the user doesn't already have a resolved HEAD reference.
* Add revwalk glob testCarlos Martín Nieto2012-02-271-0/+15
|
* Move revwalk test to clarCarlos Martín Nieto2012-02-271-0/+119