summaryrefslogtreecommitdiff
path: root/tests/refs/create.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: refs: modernize coding style of testcasePatrick Steinhardt2020-06-081-8/+3
| | | | | The coding style of the testcase refs::create::propagate_eexists is not really up-to-date. Convert it to use a more modern coding style.
* references: use new names in internal usageethomson/git_refEdward Thomson2019-01-171-5/+5
| | | | Update internal usage to use the `git_reference` names for constants.
* settings: rename `GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION`Patrick Steinhardt2017-06-081-2/+2
| | | | | | | | | | | Initially, the setting has been solely used to enable the use of `fsync()` when creating objects. Since then, the use has been extended to also cover references and index files. As the option is not yet part of any release, we can still correct this by renaming the option to something more sensible, indicating not only correlation to objects. This commit renames the option to `GIT_OPT_ENABLE_FSYNC_GITDIR`. We also move the variable from the object to repository source code.
* Merge pull request #4030 from libgit2/ethomson/fsyncEdward Thomson2017-03-221-0/+68
|\ | | | | fsync all the things
| * Honor `core.fsyncObjectFiles`ethomson/fsyncEdward Thomson2017-03-021-26/+41
| |
| * win32: don't fsync parent directories on WindowsEdward Thomson2017-02-281-2/+13
| | | | | | | | Windows doesn't support it.
| * fsync: call it "synchronous" object writingEdward Thomson2017-02-281-2/+2
| | | | | | | | | | Rename `GIT_OPT_ENABLE_SYNCHRONIZED_OBJECT_CREATION` -> `GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION`.
| * fsync parent directories when fsyncingEdward Thomson2017-02-281-2/+2
| | | | | | | | | | | | When fsync'ing files, fsync the parent directory in the case where we rename a file into place, or create a new file, to ensure that the directory entry is flushed correctly.
| * refdb_fs: optionally fsync packed refsEdward Thomson2017-02-281-0/+15
| |
| * refdb_fs: optionally fsync loose referencesEdward Thomson2017-02-281-0/+27
| |
* | tests: refs::create: fix memory leakPatrick Steinhardt2017-03-011-1/+1
|/
* Whitespace and style fixesRichard Ipsum2017-02-251-5/+5
| | | | | Use C style comments as per style guide, and fix mismatching indentation.
* tests: Add create__symbolic_with_arbitrary_contentRichard Ipsum2017-02-251-0/+49
| | | | | | | This test ensures that it's possible to create a symbolic ref that has arbitrary data as its target. It also ensures it's possible to obtain the target of that symbolic reference from the git_reference object.
* refs::create: strict object creation on by defaultEdward Thomson2016-04-111-5/+5
| | | | | | | | When we turned strict object creation validation on by default, we forgot to inform the refs::create tests of this. They, in fact, believed that strict object creation was off by default. As a result, their cleanup function went and turned strict object creation off for the remaining tests.
* tests: plug a leakCarlos Martín Nieto2016-03-031-0/+1
|
* refs: honor strict object creationEdward Thomson2016-02-281-2/+24
|
* refs: complain when a directory exists at refEdward Thomson2015-11-121-0/+17
| | | | | When a (non-empty) directory exists at the reference target location, complain with a more actionable error message.
* Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-9/+9
| | | | | | | | | | 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.
* reference_create: validate loose namesEdward Thomson2014-12-161-3/+45
| | | | Validate loose reference names on Win32.
* Introduce cl_assert_equal_oidEdward Thomson2014-07-011-5/+5
|
* refs: remove the _with_log differentiationCarlos Martín Nieto2014-01-151-8/+8
| | | | | | Any well-behaved program should write a descriptive message to the reflog whenever it updates a reference. Let's make this more prominent by removing the version without the reflog parameters.
* Rename tests-clar to testsBen Straub2013-11-141-0/+168