chiark / gitweb /
provide a global temporary directory
[topgit.git] / tg-summary.sh
index 75ef4e3cc2c5fc77058565245fc737d3bdc21252..612bd27443779266de3385dfce6b2812be81f85a 100644 (file)
@@ -55,10 +55,9 @@ EOT
 fi
 
 if [ -n "$sort" ]; then
-       tsort_input=`mktemp`
+       tsort_input="$(get_temp tg-summary-sort)"
        exec 4>$tsort_input
        exec 5<$tsort_input
-       rm $tsort_input
 fi
 
 ## List branches
@@ -121,6 +120,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