File: D1882-test-util-newfunc.sh

package info (click to toggle)
ble.sh 0.4.0~git20250321.d4c812b-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,516 kB
  • sloc: sh: 71,367; awk: 1,316; cpp: 750; ansic: 186; javascript: 43; makefile: 35
file content (11 lines) | stat: -rwxr-xr-x 274 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

function list-functions {
  git cat-file -p "$1" |
    sed -nE 's/^[[:blank:]]*function ([^[:blank:]]*)[[:blank:]]*\{?/\1/p' | uniq
}

list-functions 1410c72b:src/util.sh > a.tmp
list-functions @:src/util.sh > b.tmp
colored diff -bwu a.tmp b.tmp
rm a.tmp b.tmp