| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
| |
This makes the first OID param of the ODB callback a const pointer
and also propogates that change all the way to the backends.
|
| |
|
|
| |
Fixes #921.
|
| | |
|
| |\
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
src/notes.c
src/transports/git.c
src/transports/http.c
src/transports/local.c
tests-clar/odb/foreach.c
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | | |
odb: allow creating an ODB backend from a packfile index
|
| | |/
| |
| |
| |
| | |
git_odb_backend_one_packfile() allows us to create an ODB backend out
of an .idx file.
|
| |/ |
|
| |
|
|
| |
Some objects were added in another PR
|
|
|
Go through each backend and list every objects that exists in
them. This allows fsck-like uses.
|