Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/chainlint/function.expect # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / chainlint / function.expect` 11 lines ยท 247 bytes Raw Blame History 1 2 sha1_file() { 2 3 echo "$*" | sed "s#..#.git/objects/&/#" 3 4 } && 4 5 5 6 remove_object() { 6 7 file=$(sha1_file "$*") && 7 8 test -e "$file" ?!LINT: missing '&&'?! 8 9 rm -f "$file" 9 10 } ?!LINT: missing '&&'?! 10 11 11 12 sha1_file arg && remove_object arg