Permalink
Browse files

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 <ceder@lysator.liu.se>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  • Loading branch information...
1 parent 83d44c0 commit 7b523289a16c5ae66d36e3d10865594386a59c69 @cederlys cederlys committed with Uwe Kleine-König Oct 3, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 tg-summary.sh
View
@@ -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

0 comments on commit 7b52328

Please sign in to comment.