We can get rid of some quoted tabs and make a few tests slightly easier
to read and edit by just asking for the names of the files modified,
since that's all these tests were interested in anyway.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git checkout master &&
compare_head
) &&
- git diff --raw | grep " submodule" &&
+ git diff --name-only | grep ^submodule$ &&
git submodule update &&
- git diff --raw | grep " submodule" &&
+ git diff --name-only | grep ^submodule$ &&
(cd submodule &&
compare_head
) &&
git checkout master &&
compare_head
) &&
- git diff --raw | grep " submodule" &&
+ git diff --name-only | grep ^submodule$ &&
git submodule update --checkout &&
- git diff --raw >out &&
- ! grep " submodule" out &&
+ git diff --name-only >out &&
+ ! grep ^submodule$ out &&
(cd submodule &&
test_must_fail compare_head
) &&