summaryrefslogtreecommitdiff
path: root/tests-clar/stash/drop.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-174/+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.
* Add clar helper to create new commit from indexRussell Belfer2013-09-171-7/+9
| | | | | | | | 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.
* Plug a couple of leaksCarlos Martín Nieto2013-04-201-0/+4
|
* Change git_revparse to output git_object pointersBen Straub2013-04-151-8/+7
| | | | This will probably prevent many lookup/free operations in calling code.
* Deprecate git_revparse_single and _rangelikeBen Straub2013-04-091-12/+7
|
* 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-121-1/+1
| | | | to match
* Improve error propagation in stashRussell Belfer2013-01-041-0/+7
| | | | | | | | | | | | 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!
* Fix warnings on Win64 buildRussell Belfer2012-11-271-3/+3
|
* Rename ref and reflog apis for consistencyBen Straub2012-11-271-2/+2
|
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-231-0/+4
| | | | | | | | | | | | 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.
* Clean up a couple things missed in rebaseRussell Belfer2012-11-091-1/+1
|
* index refactoringEdward Thomson2012-10-291-1/+1
|
* stash: add git_stash_drop()nulltoken2012-10-261-0/+126