summaryrefslogtreecommitdiff
path: root/tests/refs/branches/create.c
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for the annotated versions of ref-modifying functionsCarlos Martín Nieto2015-03-161-0/+16
| | | | | This also brings the soft-reset tests back to life. The function name was missing an underscore, meaning they had not been running.
* branch: fix generated reflog message upon creationnulltoken2015-03-041-1/+1
|
* branch: don't accept a reflog message overrideCarlos Martín Nieto2015-03-031-33/+16
| | | | | | | This namespace is about behaving like git's branch command, so let's do exactly that instead of taking a reflog message. This override is still available via the reference namespace.
* Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-14/+13
| | | | | | | | | | The signature for the reflog is not something which changes dynamically. Almost all uses will be NULL, since we want for the repository's default identity to be used, making it noise. In order to allow for changing the identity, we instead provide git_repository_set_ident() and git_repository_ident() which allow a user to override the choice of signature.
* Fix branch creation when branch name matches namespace of previously deleted ↵Jeff Hostetler2015-02-031-0/+104
| | | | branch
* Refs: Extend unicode test for branch creation.Arthur Schreiber2014-05-301-0/+3
| | | | | | This adds another assertion to ensure that the reference name inside the git_reference struct returned by `git_branch_create` is returned as precomposed if `core.precomposeunicode` is enabled.
* Don't always test composed-insensitive lookupsrb/unicode-branch-namesRussell Belfer2014-05-081-4/+4
| | | | | | Only on a filesystem that is composed/decomposed insensitive, should be testing that a branch can be looked up by the opposite form and still work correctly.
* Pass unconverted data when iconv doesn't like itRussell Belfer2014-05-081-0/+56
| | | | | | | | | | | | | | When using Iconv to convert unicode data and iconv doesn't like the source data (because it thinks that it's not actual UTF-8), instead of stopping the operation, just use the unconverted data. This will generally do the right thing on the filesystem, since that is the source of the non-UTF-8 path data anyhow. This adds some tests for creating and looking up branches with messy Unicode names. Also, this takes the helper function that was previously internal to `git_repository_init` and makes it into `git_path_does_fs_decompose_unicode` which is a useful in tests to understand what the expected results should be.
* Some further sandboxing cleanups to testsRussell Belfer2014-05-021-6/+3
| | | | | Trying to find other issues where tests may not clean up quite properly when they are through...
* Merge pull request #2144 from linquize/branch-f-currentBen Straub2014-03-021-0/+19
|\ | | | | Do not allow git_branch_create() to force update branch
| * Add unit test to show git_branch_create() fails if attempt to force create ↵Linquize2014-03-021-0/+19
| | | | | | | | current branch
* | Reset helpers: use revparse insteadBen Straub2014-02-031-4/+5
|/
* Allow tests to run without user configBen Straub2014-01-301-0/+6
|
* Enhance testing of signature parametersBen Straub2014-01-301-1/+11
|
* Provide good default reflog messages in branch apiBen Straub2014-01-301-0/+17
|
* Deleting a branch deletes its reflogBen Straub2014-01-301-20/+0
|
* Add reflog params to git_branch_createBen Straub2014-01-301-9/+13
|
* Add passing reflog testsBen Straub2014-01-301-1/+29
|
* Clean up warningsEdward Thomson2013-12-091-1/+2
|
* Rename tests-clar to testsBen Straub2013-11-141-0/+76