libgit2/tests-clar/attr
Russell Belfer 5dca201072 Update iterators for consistency across library
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.
2012-08-03 17:08:01 -07:00
..
attr_expect.h Fix bugs for status with spaces and reloaded attrs 2012-05-24 17:14:56 -07:00
file.c Fix bugs for status with spaces and reloaded attrs 2012-05-24 17:14:56 -07:00
flags.c global: Fix unit tests after reordering 2012-05-18 01:25:57 +02:00
lookup.c Fix bugs for status with spaces and reloaded attrs 2012-05-24 17:14:56 -07:00
repo.c Update iterators for consistency across library 2012-08-03 17:08:01 -07:00