t4002 (diff-basic): use test_might_fail for commands that might fail
Also replace '|| return 1' by '&&' to allow chain of operations to be
checked for proper return status, and modify the update-index command
as suggested by Jonathan Nieder to not exit early but try to make sure
files that match the work tree are marked as matching.
Acked-by: Ævar Arnfjörð Bjarmason <redacted> Reviewed-by: Jonathan Nieder <redacted> Signed-off-by: Elijah Newren <redacted> Signed-off-by: Junio C Hamano <redacted>