summaryrefslogtreecommitdiff
path: root/src/notes.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * Update iterators for consistency across libraryRussell Belfer2012-08-031-26/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | portability: Improve x86/amd64 compatibilitynulltoken2012-07-241-1/+2
|/
* tree: Bring back `entry_bypath`Vicent Marti2012-06-291-1/+1
| | | | Smaller, simpler, faster.
* notes: fix memory leaksMichael Schubert2012-06-211-12/+8
|
* Merge remote-tracking branch 'yorah/fix/notes-creation' into developmentVicent Marti2012-06-191-241/+307
|\ | | | | | | | | Conflicts: src/notes.c
| * notes: simplify the handling of fanoutsyorah2012-06-081-239/+222
| | | | | | | | | | | | | | - 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
* | misc: Fix warnings from PVS Studio trialVicent Martí2012-06-071-2/+2
|/
* errors: Rename error codesbreaking-changesVicent Martí2012-05-181-5/+5
|
* errors: Rename the generic return codesVicent Martí2012-05-181-5/+5
|
* global: Change parameter ordering in APIVicent Martí2012-05-181-1/+1
| | | | Consistency is good.
* notes: make git_note_foreach() callback signature easier to cope with from a ↵nulltoken2012-05-161-7/+9
| | | | binding perspective
* Fix notes to use new fixed iterator signatureRussell Belfer2012-05-151-1/+1
|
* Fix compilation warningsnulltoken2012-05-141-4/+1
|
* notes: add git_notes_foreach()nulltoken2012-05-141-23/+135
|
* notes: Cleanup error handlingVicent Martí2012-05-051-19/+11
|
* notes: add git_note_default_ref()Michael Schubert2012-05-031-0/+6
| | | | | Add git_note_default_ref to allow easy retrieval of the currently set default notes reference.
* notes: honor core.notesRefMichael Schubert2012-05-031-6/+35
| | | | | Setting core.notesRef allows to change the default notes reference used by Git. Check if set before using GIT_NOTES_DEFAULT_REF. Fixes #649.
* Convert indexer, notes, sha1_lookup, and signatureRussell Belfer2012-03-191-104/+75
| | | | More files moved to new error handling style.
* notes: fix assertschu2012-02-161-3/+3
| | | | | | Hopefully fix issue "Don't sleep and code" - #558. Signed-off-by: schu <schu-github@schulog.org>
* Add git notes APIschu2012-02-151-0/+439
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>