Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-22merge: reverse array and length parameter orderCarlos Martín Nieto
Make it pair up with the one for commits. This fixes #1691.
2013-09-17Fix cleanup issues with new testsRussell Belfer
2013-09-09revwalk: allow simplifying by first-parentCarlos Martín Nieto
When enabled, only the first parent of each commit will be queued, enabling a simple way of using first-parent simplification.
2013-08-07Add long-file-name branch to test repoBen Straub
2013-07-22Update init and clean for revwalk::basic testsRussell Belfer
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.
2013-07-22git_reference_next_name must match git_reference_nextRussell Belfer
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.
2013-06-26Add a test case.Arthur Schreiber
2013-04-07revwalk: Parse revision rangesGreg Price
All the hard work is already in revparse. Signed-off-by: Greg Price <price@mit.edu>
2013-04-01revwalk: refactor tests a bitGreg Price
Signed-off-by: Greg Price <price@mit.edu>
2013-04-01revwalk tests: better diagram of example repoGreg Price
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>
2013-02-20Simplify signature parsingVicent Marti
2013-01-11Fix MSVC compilation warningsnulltoken
2013-01-06Merge pull request #1131 from libgit2/correct-ahead-behindVicent Martí
Fix an issue with ahead-behind for lopsided traversal
2012-12-19revwalk-test: Don't leak the second repositorySascha Cunz
2012-12-10Fix no_common_ancestor test for ahead_behind countScott J. Goldman
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.
2012-11-30Fixup ahead/behind testsScott J. Goldman
Fix a typo that caused a failing test, and use cl_assert_equal instead of cl_assert.
2012-11-30Fix function name and add real error checkRussell Belfer
`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.
2012-11-29Rename git_count_ahead_behind -> git_graph_ahead_behindScott J. Goldman
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 *`.
2012-11-29Add the ahead/behind test that Carlos suggestedScott J. Goldman
Adds a repo with a more complex topology to test the ahead-behind count.
2012-11-29Add tests for ahead-behind countScott J. Goldman
2012-11-28Rename ref and reflog apis for consistencyBen Straub
2012-11-23Reset all static variables to NULL in clar's __cleanupSascha Cunz
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
2012-09-27revwalk: fix off-by-one errorMichael Schubert
Fixes #921.
2012-08-27revwalk: refuse push of non-commit objectsMichael Schubert
Check the type of the pushed object immediately instead of starting the walk and failing in between.
2012-07-11revwalk: relax the parsing of the commit timenulltoken
2012-07-11tests: add test commit with angle brackets in the author namenulltoken
2012-06-19clar: Fix warningsVicent Marti
2012-06-07merge: Expose git_merge_base_many()nulltoken
2012-06-07merge: cleanup testsnulltoken
2012-05-18errors: Rename error codesbreaking-changesVicent Martí
2012-05-18errors: Rename the generic return codesVicent Martí
2012-05-13mergebase: enhance test code coveragenulltoken
2012-04-12revwalk: add test hiding a commit without a merge baseCarlos Martín Nieto
Nothing should be hidden and this shouldn't bother the merge base calculation.
2012-04-12Implement git_merge_base()Carlos Martín Nieto
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.
2012-04-12revwalk: allow pushing/hiding a reference by nameCarlos Martín Nieto
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.
2012-02-28Simple test for pushing HEAD and hiding a branchCarlos Martín Nieto
2012-02-28revwalk: add convenience function to push/hide HEADCarlos Martín Nieto
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.
2012-02-28Add revwalk glob testCarlos Martín Nieto
2012-02-28Move revwalk test to clarCarlos Martín Nieto