summaryrefslogtreecommitdiff
path: root/tests-clar/revwalk/mergebase.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-392/+0
|
* merge: reverse array and length parameter orderCarlos Martín Nieto2013-09-221-2/+2
| | | | Make it pair up with the one for commits. This fixes #1691.
* Add a test case.Arthur Schreiber2013-06-251-0/+12
|
* Fix MSVC compilation warningsnulltoken2013-01-111-18/+18
|
* Merge pull request #1131 from libgit2/correct-ahead-behindVicent Martí2013-01-051-4/+3
|\ | | | | Fix an issue with ahead-behind for lopsided traversal
| * Fix no_common_ancestor test for ahead_behind countScott J. Goldman2012-12-091-4/+3
| | | | | | | | | | | | Ahead-behind count is still a valid operation, even if the two commits don't have a common merge-base. The old implementation was buggy, so it returned ENOTFOUND. Fixed now.
* | revwalk-test: Don't leak the second repositorySascha Cunz2012-12-191-0/+3
|/
* Fixup ahead/behind testsScott J. Goldman2012-11-291-14/+19
| | | | | Fix a typo that caused a failing test, and use cl_assert_equal instead of cl_assert.
* Fix function name and add real error checkRussell Belfer2012-11-291-1/+1
| | | | | | | `revwalk.h:commit_lookup()` -> `git_revwalk__commit_lookup()` and make `git_commit_list_parse()` do real error checking that the item in the list is an actual commit object. Also fixed an apparent typo in a test name.
* Rename git_count_ahead_behind -> git_graph_ahead_behindScott J. Goldman2012-11-281-13/+13
| | | | | | Moved it into graph.{c,h} which i created for the new "graph" functions namespace. Also adjusted the function prototype to use `size_t` and `const git_oid *`.
* Add the ahead/behind test that Carlos suggestedScott J. Goldman2012-11-281-1/+117
| | | | | Adds a repo with a more complex topology to test the ahead-behind count.
* Add tests for ahead-behind countScott J. Goldman2012-11-281-0/+33
|
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-231-0/+1
| | | | | | | | | | | | 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: fix off-by-one errorMichael Schubert2012-09-271-0/+9
| | | | Fixes #921.
* clar: Fix warningsVicent Marti2012-06-191-0/+1
|
* merge: Expose git_merge_base_many()nulltoken2012-06-071-0/+66
|
* merge: cleanup testsnulltoken2012-06-071-13/+12
|
* mergebase: enhance test code coveragenulltoken2012-05-131-0/+111
|
* Implement git_merge_base()Carlos Martín Nieto2012-04-121-0/+37
It's implemented in revwalk.c so it has access to the revision walker's commit cache and related functions. The algorithm is the one used by git, modified so it fits better with the library's functions.