libgit2/tests-clar/diff
Russell Belfer f9775a37aa Add ignore_submodules to diff options
This adds correct support for an equivalent to --ignore-submodules
in diff, where an actual ignore value can be passed to diff to
override the per submodule settings in the configuration.

This required tweaking the constants for ignore values so that
zero would not be used and could represent an unset option to the
diff.  This was an opportunity to move the submodule values into
include/git2/types.h and to rename the poorly named DEFAULT values
for ignore and update constants to RESET instead.

Now the GIT_DIFF_IGNORE_SUBMODULES flag is exactly the same as
setting the ignore_submodules option to GIT_SUBMODULE_IGNORE_ALL
(which is actually a minor change from the old behavior in that
submodules will now be treated as UNMODIFIED deltas instead of
being left out totally - if you set GIT_DIFF_INCLUDE_UNMODIFIED).

This includes tests for the various new settings.
2013-07-10 12:15:03 -07:00
..
blob.c Add "as_path" parameters to blob and buffer diffs 2013-06-17 17:03:34 -07:00
diff_helpers.c Diff hunk context off by one on long lines 2013-07-05 16:59:38 -07:00
diff_helpers.h More diff rename tests; better split swap handling 2013-05-23 15:06:07 -07:00
diffiter.c Replace diff delta binary with flags 2013-02-20 15:10:21 -08:00
drivers.c Diff hunk context off by one on long lines 2013-07-05 16:59:38 -07:00
index.c Fix some leaks and (possibly) dangling pointers in tests 2012-12-19 08:04:31 +01:00
iterator.c Make iterators use GIT_ITEROVER & smart advance 2013-05-31 12:18:43 -07:00
notify.c Notify '*' pathspec correctly when diffing 2013-04-11 09:59:26 +02:00
patch.c Implement regex pattern diff driver 2013-06-11 11:22:22 -07:00
pathspec.c Add git_pathspec_match_diff API 2013-07-10 20:50:33 +02:00
rename.c Fix compilation warnings 2013-06-29 13:27:55 +02:00
submodules.c Add ignore_submodules to diff options 2013-07-10 12:15:03 -07:00
tree.c Improve diff config options handling 2013-04-23 12:57:30 -07:00
workdir.c Add test for fixed diff bug 2013-06-20 15:15:10 -07:00