interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / chainlint / function.expect

11 lines · 247 bytes Raw Blame History
12 sha1_file() {
23 echo "$*" | sed "s#..#.git/objects/&/#"
34 } &&
45
56 remove_object() {
67 file=$(sha1_file "$*") &&
78 test -e "$file" ?!LINT: missing '&&'?!
89 rm -f "$file"
910 } ?!LINT: missing '&&'?!
1011
1112 sha1_file arg && remove_object arg