t7406: simplify by using diff --name-only instead of diff --raw

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>

Elijah Newren committed Aug 8, 2018 at 09:31 UTC 602813cff3798f63b7f1f8c9a362e4da05772cad
1 file changed +5 -5
t/t7406-submodule-update.sh
+5 -5
@@ -579,9 +579,9 @@ test_expect_success 'submodule update - update=none in .git/config' '
579 git checkout master &&
580 compare_head
581 ) &&
582 - git diff --raw | grep " submodule" &&
582 + git diff --name-only | grep ^submodule$ &&
583 git submodule update &&
584 - git diff --raw | grep " submodule" &&
584 + git diff --name-only | grep ^submodule$ &&
585 (cd submodule &&
586 compare_head
587 ) &&
@@ -597,10 +597,10 @@ test_expect_success 'submodule update - update=none in .git/config but --checkou
597 git checkout master &&
598 compare_head
599 ) &&
600 - git diff --raw | grep " submodule" &&
600 + git diff --name-only | grep ^submodule$ &&
601 git submodule update --checkout &&
602 - git diff --raw >out &&
603 - ! grep " submodule" out &&
602 + git diff --name-only >out &&
603 + ! grep ^submodule$ out &&
604 (cd submodule &&
605 test_must_fail compare_head
606 ) &&