diff options
author | Russell Belfer <rb@github.com> | 2013-06-29 13:20:45 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-07-10 12:14:13 -0700 |
commit | 2e3e273e33894bc1089cfc09d89bd2cb144b108d (patch) | |
tree | 832f6867648828164eae1bf3beb42cde4da88943 /tests-clar/diff/submodules.c | |
parent | 1aad6137d218830bc280c4327595182019164515 (diff) | |
download | libgit2-2e3e273e33894bc1089cfc09d89bd2cb144b108d.tar.gz |
Update diff to new internal submodule status API
Submodules now expose an internal status API that allows diff to
get back the OID values from the submodule very easily and also
to avoiding caching issues and to override the ignore setting for
the submodule.
Diffstat (limited to 'tests-clar/diff/submodules.c')
-rw-r--r-- | tests-clar/diff/submodules.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tests-clar/diff/submodules.c b/tests-clar/diff/submodules.c index c94fd57c6..4a40affb2 100644 --- a/tests-clar/diff/submodules.c +++ b/tests-clar/diff/submodules.c @@ -333,8 +333,6 @@ void test_diff_submodules__invalid_cache(void) check_diff_patches(diff, expected_unchanged); git_diff_list_free(diff); - sleep(2); - /* commit changed index of submodule */ { git_object *parent; @@ -357,11 +355,6 @@ void test_diff_submodules__invalid_cache(void) git_signature_free(sig); } - /* THIS RELOAD SHOULD NOT BE REQUIRED - cl_git_pass(git_submodule_reload_all(g_repo)); - cl_git_pass(git_submodule_lookup(&sm, g_repo, smpath)); - */ - git_submodule_set_ignore(sm, GIT_SUBMODULE_IGNORE_DIRTY); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts)); |