libgit2/tests-clar/refs
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
..
branches Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
crashes.c t10-refs.c ported. 2012-03-30 12:05:42 -07:00
create.c Update test suite 2012-05-02 16:14:30 -07:00
delete.c Boom 2012-05-02 16:57:16 -07:00
foreachglob.c Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
list.c refs: git_reference_listall -> git_reference_list 2012-05-18 01:26:16 +02:00
listall.c refs: git_reference_listall -> git_reference_list 2012-05-18 01:26:16 +02:00
lookup.c Rename to git_reference_name_to_oid 2012-04-23 10:06:31 -07:00
normalize.c Simple readability fixes. 2012-03-31 20:12:29 -07:00
overwrite.c Update test suite 2012-05-02 16:14:30 -07:00
pack.c Boom 2012-05-02 16:57:16 -07:00
read.c refs: readonly tests don't need a sandboxed repo 2012-07-12 01:06:12 +02:00
reflog.c refs: add git_reference_has_log() 2012-07-07 12:15:28 +02:00
remotetracking.c refs: introduce git_reference_remote_tracking_from_branch() 2012-07-12 01:06:13 +02:00
rename.c Boom 2012-05-02 16:57:16 -07:00
revparse.c revparse: don't allow an empty string 2012-07-23 21:32:45 +02:00
unicode.c Clean up valgrind warnings 2012-04-04 13:13:43 +02:00