summaryrefslogtreecommitdiff
path: root/tests-clar/notes/notes.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-387/+0
|
* added missing free for git_note in clar testsNico von Geyso2013-03-061-0/+2
|
* fixed minor issues with new note iteratorNico von Geyso2013-03-061-9/+8
| | | | | * fixed style issues * use new iterator functions for git_note_foreach()
* use git_note_iterator type instead of non-public git_iterator oneNico von Geyso2013-03-061-3/+5
|
* basic note iterator implementationNico von Geyso2013-03-061-1/+66
| | | | | * git_note_iterator_new() - create a new note iterator * git_note_next() - retrieves the next item of the iterator
* add option to allow git note overwriteNikolai Vladimirov2013-01-031-4/+28
|
* Remove git_note_data structureRussell Belfer2012-11-271-5/+8
|
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-231-0/+2
| | | | | | | | | | | | 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
* Update iterators for consistency across libraryRussell Belfer2012-08-031-1/+29
| | | | | | | | | | | | | | | | | This updates all the `foreach()` type functions across the library that take callbacks from the user to have a consistent behavior. The rules are: * A callback terminates the loop by returning any non-zero value * Once the callback returns non-zero, it will not be called again (i.e. the loop stops all iteration regardless of state) * If the callback returns non-zero, the parent fn returns GIT_EUSER * Although the parent returns GIT_EUSER, no error will be set in the library and `giterr_last()` will return NULL if called. This commit makes those changes across the library and adds tests for most of the iteration APIs to make sure that they follow the above rules.
* notes: fix memory leaksMichael Schubert2012-06-211-0/+2
|
* notes: simplify testsyorah2012-06-121-37/+83
|
* notes: simplify the handling of fanoutsyorah2012-06-081-0/+33
| | | | | | | - Do not create new levels of fanout when creating notes from libgit2 - Insert a note in an existing matching fanout - Remove a note from an existing fanout - Cleanup git_note_read, git_note_remove, git_note_foreach, git_note_create methods in order use tree structures instead of tree_oids
* notes: add failing testyorah2012-06-081-0/+48
|
* notes: make git_note_foreach() callback signature easier to cope with from a ↵nulltoken2012-05-161-3/+3
| | | | binding perspective
* Fix compilation warningsnulltoken2012-05-141-3/+4
|
* notes: add git_notes_foreach()nulltoken2012-05-141-14/+96
|
* Update test suiteVicent Martí2012-05-021-2/+2
|
* Discovered cl_git_strequal! Mounted a crusade!Ben Straub2012-03-311-2/+2
|
* tests-clar/notes: init oid before usingschu2012-02-231-0/+1
| | | | | Reported-by: Carlos Martín Nieto <carlos@cmartin.tk> Signed-off-by: schu <schu-github@schulog.org>
* Add git notes APIschu2012-02-151-0/+49
This commit adds basic git notes support to libgit2, namely: * git_note_read * git_note_message * git_note_oid * git_note_create * git_note_remove In the long run, we probably want to provide some convenience callback mechanism for merging and moving (filter-branch) notes. Signed-off-by: schu <schu-github@schulog.org>