summaryrefslogtreecommitdiff
path: root/tests-clar/odb/foreach.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-80/+0
|
* tag: Fix parsing when no tagger nor messagenulltoken2013-03-311-3/+3
|
* Make git_odb_foreach_cb take const paramRussell Belfer2012-11-271-2/+2
| | | | | This makes the first OID param of the ODB callback a const pointer and also propogates that change all the way to the backends.
* revwalk: fix off-by-one errorMichael Schubert2012-09-271-1/+1
| | | | Fixes #921.
* test: Open ODB on each test suiteVicent Marti2012-08-061-0/+6
|
* Merge remote-tracking branch 'arrbee/tree-walk-fixes' into developmentVicent Marti2012-08-061-0/+17
|\ | | | | | | | | | | | | | | | | Conflicts: src/notes.c src/transports/git.c src/transports/http.c src/transports/local.c tests-clar/odb/foreach.c
| * Update iterators for consistency across libraryRussell Belfer2012-08-031-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #833 from carlosmn/odb-oneVicent Martí2012-07-311-6/+17
|\ \ | | | | | | odb: allow creating an ODB backend from a packfile index
| * | odb: allow creating an ODB backend from a packfile indexCarlos Martín Nieto2012-07-211-6/+17
| |/ | | | | | | | | git_odb_backend_one_packfile() allows us to create an ODB backend out of an .idx file.
* | odb: add some documentation to the foreach() testnulltoken2012-07-251-1/+11
|/
* tests: fix git_odb_foreach() object countCarlos Martín Nieto2012-07-121-1/+1
| | | | Some objects were added in another PR
* odb: add git_odb_foreach()Carlos Martín Nieto2012-07-031-0/+36
Go through each backend and list every objects that exists in them. This allows fsck-like uses.