5 # Avoid duplicated test numbers --- checking 'pu' is enough
6 # as we will usually add, but never remove them.
8 git diff-index
--cached --name-only --diff-filter=A HEAD
-- t |
9 sed -ne 's|t/\(t[0-9][0-9][0-9][0-9]\)-.*\.sh$|\1|p'
15 git ls-tree
--name-only pu
:t |
16 sed -ne 's|^\(t[0-9][0-9][0-9][0-9]\)-.*\.sh$|\1|p' |
23 echo >&2 "Test number $a already taken"