From: Per Cederqvist Date: Sun, 3 Oct 2010 21:41:45 +0000 (+0200) Subject: Indicate the current branch in "tg summary --graphviz" X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=7b523289a16c5ae66d36e3d10865594386a59c69;hp=83d44c01a9494fdd1935012f3bad5ed805c750a3 Indicate the current branch in "tg summary --graphviz" Give the current branch a yellow background in the output of "tg summary --graphviz". Signed-off-by: Per Cederqvist Signed-off-by: Uwe Kleine-König --- diff --git a/tg-summary.sh b/tg-summary.sh index 75ef4e3..af16888 100644 --- a/tg-summary.sh +++ b/tg-summary.sh @@ -121,6 +121,9 @@ git for-each-ref refs/top-bases | if ! "$dep_is_tgish" || ! branch_annihilated $dep; then if [ -n "$graphviz" ]; then echo "\"$name\" -> \"$dep\";" + if [ "$name" = "$curname" ] || [ "$dep" = "$curname" ]; then + echo "\"$curname\" [style=filled,fillcolor=yellow];" + fi else echo "$name $dep" >&4 fi