12 lines
196 B
Plaintext
12 lines
196 B
Plaintext
|
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
|