D1882-test-util-newfunc.sh (274B)
1 #!/bin/bash 2 3 function list-functions { 4 git cat-file -p "$1" | 5 sed -nE 's/^[[:space:]]*function ([^[:space:]]*)[[:space:]]*\{?/\1/p' | uniq 6 } 7 8 list-functions 1410c72b:src/util.sh > a.tmp 9 list-functions @:src/util.sh > b.tmp 10 colored diff -bwu a.tmp b.tmp 11 rm a.tmp b.tmp