libgit2/tests/submodule
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
..
add.c remote: accept a repo and name for renaming 2014-10-24 16:25:59 +02:00
lookup.c More tests and fix submodule index refresh 2014-04-01 16:46:25 -07:00
modify.c Test (and fix) the git_submodule_sync changes 2014-04-03 11:58:51 -07:00
nosubs.c Remove most submodule reloads from tests 2014-04-01 13:24:06 -07:00
repository_init.c submodule test: free submodule 2014-10-26 22:27:54 -04:00
status.c iterator: submodules are determined by an index or tree 2014-11-07 08:33:27 +01:00
submodule_helpers.c Win32: Fix diff::workdir::submodules test #2361 2014-06-07 12:18:56 -04:00
submodule_helpers.h More tests and fix submodule index refresh 2014-04-01 16:46:25 -07:00