2 # TopGit - A different patch queue manager
3 # (c) Petr Baudis <pasky@suse.cz> 2008
10 echo "Usage: tg summary" >&2
17 git for-each-ref refs
/top-bases |
18 while read rev name ref
; do
19 name
="${ref#refs/top-bases/}"
22 ! branch_empty
"$name" || nonempty
='0'
24 [ -z "$(needs_update "$name")" ] || deps_update
='D'
26 branch_contains
"$name" "refs/top-bases/$name" || base_update
='B'
28 if [ "$(git rev-parse "$name")" != "$rev" ]; then
29 subject
="$(git cat-file blob "$name:.topmsg
" | sed -n 's/^Subject: //p')"
32 subject
="(No commits)"
35 printf '%s%s%s\t%-31s\t%s\n' "$nonempty" "$deps_update" "$base_update" \