libgit2/tests-clar/submodule
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
..
lookup.c Test submodules with empty index or orphaned head 2013-06-27 22:29:05 -07:00
modify.c Add ignore_submodules to diff options 2013-07-10 12:15:03 -07:00
status.c Improve case handling in git_diff__paired_foreach 2013-06-17 10:03:49 -07:00
submodule_helpers.c Major submodule rewrite 2012-08-24 11:00:26 -07:00
submodule_helpers.h Major submodule rewrite 2012-08-24 11:00:26 -07:00