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/}"
23 ! branch_empty
"$name" || nonempty
='0'
25 needs_update
"$name" >/dev
/null || deps_update
='D'
27 [ -z "$missing_deps" ] || deps_missing
='!'
29 branch_contains
"$name" "refs/top-bases/$name" || base_update
='B'
31 if [ "$(git rev-parse "$name")" != "$rev" ]; then
32 subject
="$(git cat-file blob "$name:.topmsg
" | sed -n 's/^Subject: //p')"
35 subject
="(No commits)"
38 printf '%s\t%-31s\t%s\n' "$nonempty$deps_update$deps_missing$base_update" \