t3700: add a test_mode_in_index helper function
commit766cdc4147f8e77b32e67338795c8f2a6083a877
authorIngo Brückl <ib@wupperonline.de>
Sat, 30 Jul 2016 20:13:54 +0000 (30 22:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Aug 2016 21:25:30 +0000 (1 14:25 -0700)
tree534815f3738ee2fdefa6e664ce21f39443d47d71
parentb38ab197c2842733c6a9cddd88900fc67d6ce945
t3700: add a test_mode_in_index helper function

The case statement to check the file mode of a staged file appears
a number of times.

Simplify the test by utilizing a test_mode_in_index helper function.

Signed-off-by: Ingo Brückl <ib@wupperonline.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3700-add.sh