From 7b523289a16c5ae66d36e3d10865594386a59c69 Mon Sep 17 00:00:00 2001 From: Per Cederqvist Date: Sun, 3 Oct 2010 23:41:45 +0200 Subject: [PATCH 1/1] Indicate the current branch in "tg summary --graphviz" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tg-summary.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2