summaryrefslogtreecommitdiff
path: root/tests-clar/odb
Commit message (Collapse)AuthorAgeFilesLines
* 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-313-6/+94
|\ \ | | | | | | odb: allow creating an ODB backend from a packfile index
| * | odb: allow creating an ODB backend from a packfile indexCarlos Martín Nieto2012-07-213-6/+94
| |/ | | | | | | | | 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.
* clar: Fix warningVicent Martí2012-05-161-1/+0
|
* Handle duplicate objects from different backends in git_odb_read_prefix().Han-Wen Nienhuys2012-05-121-0/+25
|
* Rename the Clay test suite to ClarVicent Martí2012-01-245-0/+906
Clay is the name of a programming language on the makings, and we want to avoid confusions. Sorry for the huge diff!