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-10-01Ensure submodule repos and indices are freedignore-submodules-in-stashBen Straub
...before the helper's cleanup method tries to delete their files.
2013-09-28Test that submodules don't affect stashingJustin Spahr-Summers
2013-09-17Add clar helper to create new commit from indexRussell Belfer
There were a lot of places in the test code base that were creating a commit from the index on the current branch. This just adds a helper to handle that case pretty easily. There was only one test where this change ended up tweaking the test data, so pretty easy and mostly just a cleanup.
2013-09-17No such thing as an orphan branchCarlos Martín Nieto
Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
2013-04-20Plug a couple of leaksCarlos Martín Nieto
2013-04-15Change git_revparse to output git_object pointersBen Straub
This will probably prevent many lookup/free operations in calling code.
2013-04-09Deprecate git_revparse_single and _rangelikeBen Straub
2013-03-07immutable references and a pluggable ref databaseEdward Thomson
2013-03-04Fix a few leaksCarlos Martín Nieto
`git_diff_get_patch()` would unconditionally load the patch object and then simply leak it if the user hadn't requested it. Short-circuit loading the object if the user doesn't want it. The rest of the plugs are simply calling the free functions of objects allocated during the tests.
2013-02-22stash: Update the reference when dropping the topmost stashnulltoken
2013-02-22stash: Refactor stash::drop testsnulltoken
2013-01-12add an index_remove_bypath that removes conflicts, renamed add_from_workdir ↵Edward Thomson
to match
2013-01-05Improve error propagation in stashRussell Belfer
Stash was sometimes obscuring the actual error code, replacing it with a -1 when there was more descriptive value. This updates stash to preserve the original error code more reliably along with a variety of other error handling tweaks. I believe this is an improvement, but arguably, preserving the underlying error code may result in values that are harder to interpret by the caller who does not understand the internals. Discussion is welcome!
2013-01-03Move test cleanup into cleanup functionsBen Straub
2013-01-03Cleanup after testsBen Straub
2012-11-28Fix warnings on Win64 buildRussell Belfer
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-11-18reflog: make entry_byindex() and drop() git compliantnulltoken
Passing 0 as the index now retrieves the most recent entry instead of the oldest one.
2012-11-14Merge pull request #1016 from arrbee/fix-checkout-dir-removalVicent Martí
Update checkout with new strategies & behavior
2012-11-10tests: Add missing assertionsnulltoken
2012-11-10Fix warnings and valgrind issuesRussell Belfer
This fixes some various warnings that showed up in Travis and a couple uses of uninitialized memory and one memory leak.
2012-11-10Clean up a couple things missed in rebaseRussell Belfer
2012-11-01index: Fix testsVicent Marti
2012-10-30Merge pull request #1029 from ethomson/index_refactorVicent Martí
Index changes
2012-10-30Fix a couple of warningsMichael Schubert
2012-10-30index refactoringEdward Thomson
2012-10-27stash: add git_stash_drop()nulltoken
2012-10-27stash: add git_stash_foreach()nulltoken
2012-10-27stash: add git_stash_save()nulltoken