libgit2/include/git2
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.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
blob.h blob: add git_blob_create_fromchunks() 2012-06-07 20:33:22 +02:00
branch.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
commit.h commit: properly export git_commit_nth_gen_ancestor() 2012-07-12 20:33:30 +02:00
common.h Updates from comments on OS4 compatibility pull request http://github.com/libgit2/libgit2/pull/766 2012-06-14 18:57:24 +01:00
config.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
diff.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
errors.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
index.h Nicer constant 2012-06-19 15:16:38 -07:00
indexer.h indexer: don't use '/objects/pack/' unconditionally 2012-06-28 10:24:03 +02:00
inttypes.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
merge.h merge: Expose git_merge_base_many() 2012-06-07 16:25:37 +02:00
message.h message: Expose git_message_prettify() 2012-06-19 10:02:22 +02:00
net.h Update Copyright header 2012-02-13 17:11:09 +01:00
notes.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
object.h object: introduce git_object_peel() 2012-07-17 20:32:40 +02:00
odb_backend.h odb: add git_odb_foreach() 2012-07-03 12:50:51 +02:00
odb.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
oid.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
reflog.h refs: deploy git_reference_has_log() 2012-07-07 12:15:29 +02:00
refs.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
refspec.h Expose git_refspec_parse() 2012-06-12 15:24:33 +02:00
remote.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
repository.h Add flag to write gitlink on setting repo workdir 2012-07-10 23:19:47 -07:00
reset.h Add git_reset() 2012-06-07 21:27:30 +02:00
revparse.h Adding comment documentation for rev-parse api. 2012-05-11 11:30:46 -07:00
revwalk.h Replace incorrect 'it' with 'if' in documentation 2012-07-03 12:35:33 -07:00
signature.h signature: prevent angle bracket usage in identity 2012-07-11 20:40:13 +02:00
status.h Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
stdint.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
submodule.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
tag.h message: Expose git_message_prettify() 2012-06-19 10:02:22 +02:00
threads.h Update Copyright header 2012-02-13 17:11:09 +01:00
tree.h Fix git_tree_walk to return user error 2012-07-26 16:10:22 -07:00
types.h Merge remote-tracking branch 'source/development' into development 2012-06-13 23:28:51 +01:00
version.h libgit2 v0.17.0 "Lord of Diffstruction" 2012-05-19 01:40:46 +02:00
windows.h Update Copyright header 2012-02-13 17:11:09 +01:00