repack_without_ref(): remove temporary
[git/mingw.git] / t / t7511-status-index.sh
blobb5fdc048a54a151f78b10e9d379383a421cf3726
1 #!/bin/sh
3 test_description='git status with certain file name lengths'
5 . ./test-lib.sh
7 files="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z"
9 check() {
10 len=$1
11 prefix=$2
13 for i in $files
15 : >$prefix$i
16 done
18 test_expect_success "status, filename length $len" "
19 git add $prefix* &&
20 git status
22 rm $prefix* .git/index
25 check 1
26 check 2 p
27 check 3 px
28 check 4 pre
29 check 5 pref
30 check 6 prefi
31 check 7 prefix
32 check 8 prefix-
33 check 9 prefix-p
34 check 10 prefix-pr
35 check 11 prefix-pre
36 check 12 prefix-pref
37 check 13 prefix-prefi
38 check 14 prefix-prefix
39 check 15 prefix-prefix-
40 check 16 prefix-prefix-p
41 check 17 prefix-prefix-pr
42 check 18 prefix-prefix-pre
43 check 19 prefix-prefix-pref
44 check 20 prefix-prefix-prefi
45 check 21 prefix-prefix-prefix
46 check 22 prefix-prefix-prefix-
47 check 23 prefix-prefix-prefix-p
48 check 24 prefix-prefix-prefix-pr
50 test_done