git/t/chainlint/function.expect

2 sha1_file() {
3 	echo "$*" | sed "s#..#.git/objects/&/#"
4 } &&
5 
6 remove_object() {
7 	file=$(sha1_file "$*") &&
8 	test -e "$file" ?!AMP?!
9 	rm -f "$file"
10 } ?!AMP?!
11 
12 sha1_file arg && remove_object arg