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