X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=blobdiff_plain;f=tg-summary.sh;h=50ee8832090c6646c9bd114d6f5926657dcc07db;hp=870fcf4ddbfe9b988b5d2e35822558ff961fcda4;hb=a7f81c6f671c2c9803ae9e13108e7b3f37be9e9f;hpb=c4c57a55aa1b825109f0ce0547994ad394812902 diff --git a/tg-summary.sh b/tg-summary.sh index 870fcf4..50ee883 100644 --- a/tg-summary.sh +++ b/tg-summary.sh @@ -24,6 +24,9 @@ done curname="$(git symbolic-ref HEAD | sed 's#^refs/\(heads\|top-bases\)/##')" +! [ -n "$terse" -a -n "$graphviz" ] || + die "-t and --graphviz options are mutual exclusive" + if [ -n "$graphviz" ]; then cat < \"$dep\";" + dep_is_tgish=true + ref_exists "refs/top-bases/$dep" || + dep_is_tgish=false + if ! "$dep_is_tgish" || ! branch_annihilated $dep; then + echo "\"$name\" -> \"$dep\";" + fi done continue fi