l10n: README: fix typo
[alt-git.git] / t / t7511-status-index.sh
blob4ffa45a7bf3599b78624fbdaa39b828f4d7a0643
1 #!/bin/sh
3 test_description='git status with certain file name lengths'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
8 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"
10 check() {
11 len=$1
12 prefix=$2
14 for i in $files
16 : >$prefix$i
17 done
19 test_expect_success "status, filename length $len" "
20 git add $prefix* &&
21 git status
23 rm $prefix* .git/index
26 check 1
27 check 2 p
28 check 3 px
29 check 4 pre
30 check 5 pref
31 check 6 prefi
32 check 7 prefix
33 check 8 prefix-
34 check 9 prefix-p
35 check 10 prefix-pr
36 check 11 prefix-pre
37 check 12 prefix-pref
38 check 13 prefix-prefi
39 check 14 prefix-prefix
40 check 15 prefix-prefix-
41 check 16 prefix-prefix-p
42 check 17 prefix-prefix-pr
43 check 18 prefix-prefix-pre
44 check 19 prefix-prefix-pref
45 check 20 prefix-prefix-prefi
46 check 21 prefix-prefix-prefix
47 check 22 prefix-prefix-prefix-
48 check 23 prefix-prefix-prefix-p
49 check 24 prefix-prefix-prefix-pr
51 test_done