summaryrefslogtreecommitdiff
path: root/tests-clar/stash
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-146-796/+0
|
* reflog: move the reflog implementation into refdb_fsCarlos Martín Nieto2013-10-021-2/+2
| | | | | | | | | | References and their logs are logically coupled, let's make it so in the code by moving the fs-based reflog implementation to live next to the fs-based refs one. As part of the change, make the function take names rather than references, as only the names are relevant when looking up and handling reflogs.
* Ensure submodule repos and indices are freedignore-submodules-in-stashBen Straub2013-09-301-4/+16
| | | | ...before the helper's cleanup method tries to delete their files.
* Test that submodules don't affect stashingJustin Spahr-Summers2013-09-274-43/+117
|
* Add clar helper to create new commit from indexRussell Belfer2013-09-174-47/+12
| | | | | | | | 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.
* No such thing as an orphan branchCarlos Martín Nieto2013-09-171-1/+1
| | | | | | | | | | | 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.
* Plug a couple of leaksCarlos Martín Nieto2013-04-201-0/+4
|
* Change git_revparse to output git_object pointersBen Straub2013-04-152-16/+10
| | | | This will probably prevent many lookup/free operations in calling code.
* Deprecate git_revparse_single and _rangelikeBen Straub2013-04-092-18/+17
|
* immutable references and a pluggable ref databaseEdward Thomson2013-03-071-2/+1
|
* Fix a few leaksCarlos Martín Nieto2013-03-041-0/+2
| | | | | | | | | `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.
* stash: Update the reference when dropping the topmost stashnulltoken2013-02-221-0/+33
|
* stash: Refactor stash::drop testsnulltoken2013-02-221-9/+11
|
* add an index_remove_bypath that removes conflicts, renamed add_from_workdir ↵Edward Thomson2013-01-123-9/+9
| | | | to match
* Improve error propagation in stashRussell Belfer2013-01-042-4/+11
| | | | | | | | | | | | 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!
* Move test cleanup into cleanup functionsBen Straub2013-01-031-1/+1
|
* Cleanup after testsBen Straub2013-01-031-0/+1
|
* Fix warnings on Win64 buildRussell Belfer2012-11-271-3/+3
|
* Rename ref and reflog apis for consistencyBen Straub2012-11-272-3/+3
|
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-233-0/+12
| | | | | | | | | | | | 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
* reflog: make entry_byindex() and drop() git compliantnulltoken2012-11-171-1/+1
| | | | | Passing 0 as the index now retrieves the most recent entry instead of the oldest one.
* Merge pull request #1016 from arrbee/fix-checkout-dir-removalVicent Martí2012-11-134-4/+5
|\ | | | | Update checkout with new strategies & behavior
| * Fix warnings and valgrind issuesRussell Belfer2012-11-091-0/+1
| | | | | | | | | | This fixes some various warnings that showed up in Travis and a couple uses of uninitialized memory and one memory leak.
| * Clean up a couple things missed in rebaseRussell Belfer2012-11-093-4/+4
| |
* | tests: Add missing assertionsnulltoken2012-11-101-3/+3
|/
* index: Fix testsVicent Marti2012-11-011-1/+1
|
* Merge pull request #1029 from ethomson/index_refactorVicent Martí2012-10-303-9/+9
|\ | | | | Index changes
| * index refactoringEdward Thomson2012-10-293-9/+9
| |
* | Fix a couple of warningsMichael Schubert2012-10-302-2/+4
|/
* stash: add git_stash_drop()nulltoken2012-10-261-0/+126
|
* stash: add git_stash_foreach()nulltoken2012-10-261-0/+119
|
* stash: add git_stash_save()nulltoken2012-10-263-0/+444