3 # Copyright (c) 2005 Junio C Hamano
6 test_description
='git checkout-index -u test.
8 With -u flag, git checkout-index internally runs the equivalent of
9 git update-index --refresh on the checked out entry.'
11 TEST_PASSES_SANITIZE_LEAK
=true
17 git update-index --add path0 &&
21 'without -u, git checkout-index smudges stat information.' '
24 git checkout-index -f -a &&
25 test_must_fail git diff-files --exit-code'
28 'with -u, git checkout-index picks up stat information from new files.' '
31 git checkout-index -u -f -a &&
32 git diff-files --exit-code'