chiark / gitweb /
tg-summary: -t and --graphviz are mutual exclusive
[topgit.git] / tg-summary.sh
index 870fcf4ddbfe9b988b5d2e35822558ff961fcda4..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: