3 # Copyright (c) 2005 Junio C Hamano
6 test_description='git-checkout-cache -u test.
8 With -u flag, git-checkout-cache internally runs the equivalent of
9 git-update-cache --refresh on the checked out entry.'
16 git-update-cache --add path0 &&
20 'without -u, git-checkout-cache smudges stat information.' '
23 git-checkout-cache -f -a &&
24 git-diff-files | diff - /dev/null'
27 'with -u, git-checkout-cache picks up stat information from new files.' '
30 git-checkout-cache -u -f -a &&
31 git-diff-files | diff - /dev/null'