libgit2/tests-clar/diff
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
..
blob.c diff: make inter-hunk-context default value git-compliant 2012-07-02 17:27:49 +02:00
diff_helpers.c Minor fixes, cleanups, and clarifications 2012-06-08 12:11:13 -07:00
diff_helpers.h diff: fix the diffing of two identical blobs 2012-05-07 12:18:33 +02:00
index.c Update iterators for consistency across library 2012-08-03 17:08:01 -07:00
iterator.c diff: make inter-hunk-context default value git-compliant 2012-07-02 17:27:49 +02:00
patch.c Fix usage of "new" for fieldname in public header 2012-05-02 15:34:58 -07:00
tree.c Fix bug with merging diffs with null options 2012-07-19 10:23:45 -07:00
workdir.c Plug a few leaks 2012-06-20 00:46:34 +02:00