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