Welcome to mirror list, hosted at ThFree Co, Russian Federation.

function.expect « chainlint « t - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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