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.test # 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.test` 15 lines ยท 328 bytes Raw Blame History 1 test_expect_success 'function' ' 2 # LINT: "()" in function definition not mistaken for subshell 3 sha1_file() { 4 echo "$*" | sed "s#..#.git/objects/&/#" 5 } && 6 7 # LINT: broken &&-chain in function and after function 8 remove_object() { 9 file=$(sha1_file "$*") && 10 test -e "$file" 11 rm -f "$file" 12 } 13 14 sha1_file arg && remove_object arg 15 '