libgit2/tests/diff
Carlos Martín Nieto 62a617dc68 iterator: submodules are determined by an index or tree
We cannot know from looking at .gitmodules whether a directory is a
submodule or not. We need the index or tree we are comparing against to
tell us. Otherwise we have to assume the entry in .gitmodules is stale
or otherwise invalid.

Thus we pass the index of the repository into the workdir iterator, even
if we do not want to compare against it. This follows what git does,
which even for `git diff <tree>`, it will consider staged submodules as
such.
2014-11-07 08:33:27 +01:00
..
binary.c patch: emit binary patches (optionally) 2014-04-22 19:08:21 -05:00
blob.c Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
diff_helpers.c Remove trace / add git_diff_perfdata struct + api 2014-05-02 09:21:33 -07:00
diff_helpers.h Remove trace / add git_diff_perfdata struct + api 2014-05-02 09:21:33 -07:00
diffiter.c Drop git_patch_to_str 2014-01-22 17:51:32 +01:00
drivers.c Update Javascript userdiff driver and tests 2014-01-27 11:45:06 -08:00
format_email.c Use git_diff_get_stats in example/diff + refactor 2014-04-22 12:33:27 -07:00
index.c Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
iterator.c iterator: submodules are determined by an index or tree 2014-11-07 08:33:27 +01:00
notify.c More improvements to callback return value tests 2013-12-11 11:55:00 -08:00
patch.c patch: emit binary patches (optionally) 2014-04-22 19:08:21 -05:00
pathspec.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
rename.c git_checkout_opts -> git_checkout_options 2014-03-06 09:44:51 -08:00
stats.c Don't scale diff stat when not needed 2014-05-12 10:28:45 -07:00
submodules.c Remove most submodule reloads from tests 2014-04-01 13:24:06 -07:00
tree.c Get rid of redundant git_diff_options_init fn 2014-05-02 09:21:33 -07:00
workdir.c Fix compile error on Visual Studio 2014-05-27 23:36:07 +09:00