chiark / gitweb /
[TOPGIT] limit rev-list in branch_contains to a single rev
[topgit.git] / tg-summary.sh
index 3c90a6b5952e526bac9da80e84386d6abf6246a8..842d95ad34d11228203b437fa4e487ecac254071 100644 (file)
@@ -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 <<EOT
 # GraphViz output; pipe to:
@@ -98,3 +101,5 @@ git for-each-ref refs/top-bases |
 if [ -n "$graphviz" ]; then
        echo '}'
 fi
+
+# vim:noet