summaryrefslogtreecommitdiff
path: root/tests-clar/refs/branches/delete.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-117/+0
|
* No such thing as an orphan branchCarlos Martín Nieto2013-09-171-2/+2
| | | | | | | | | | | 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.
* immutable references and a pluggable ref databaseEdward Thomson2013-03-071-0/+7
|
* Use cl_assert_equal_s() instead of strcmp().Sebastian Bauer2013-01-251-1/+1
| | | | | Replaced all cl_assert(!strcmp()) or semantically equivalent forms by cl_assert_equal_s().
* Rename ref and reflog apis for consistencyBen Straub2012-11-271-4/+4
|
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-231-0/+3
| | | | | | | | | | | | 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
* branch: remove config section upon deletionnulltoken2012-10-251-0/+15
|
* test: extract make_head_orphaned() logicnulltoken2012-10-201-4/+2
|
* tests: leverage git_repository_detach_head()nulltoken2012-10-201-5/+7
|
* errors: deploy GIT_EORPHANEDHEAD usagenulltoken2012-10-191-0/+12
|
* branch: allow deletion of branch when HEAD's missingnulltoken2012-10-191-4/+3
|
* branch: Change `git_branch_delete` to take a refbranch-delete-refVicent Marti2012-08-261-26/+17
|
* branch: remove useless headernulltoken2012-07-241-1/+0
|
* errors: Rename error codesbreaking-changesVicent Martí2012-05-181-1/+1
|
* errors: Rename the generic return codesVicent Martí2012-05-181-1/+1
|
* Properly tag all `enums` with a `_t`Vicent Martí2012-05-181-1/+1
|
* branch: make git_branch_delete() return GIT_ENOTFOUND when the branch ↵nulltoken2012-05-131-0/+15
| | | | doesn't exist
* Add basic branch management API: git_branch_create(), git_branch_delete(), ↵nulltoken2012-04-101-0/+76
git_branch_list()