From: Bert Wesarg Date: Wed, 26 Nov 2008 18:39:45 +0000 (+0100) Subject: tg-summary: -t and --graphviz are mutual exclusive X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=f6bd1cd919899d8de2be58b60dce17e17b44f0f9 tg-summary: -t and --graphviz are mutual exclusive The -t and --graphviz don't work together, the output is not what one expect. Signed-off-by: Bert Wesarg Signed-off-by: martin f. krafft --- diff --git a/tg-summary.sh b/tg-summary.sh index 870fcf4..842d95a 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 <