X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=TO;h=996a5bab496efbc9283a713c7e46041eb1f2c5f1;hb=0bc1bdd1ec394705a13ec726bd25ad5390746277;hp=1ac8fb868d82a54e7c1d057de8764c2714b3baaa;hpb=8e6f38443e97e150cd946d508104cad16fdd6bbe;p=git.git diff --git a/TO b/TO index 1ac8fb86..996a5bab 100755 --- a/TO +++ b/TO @@ -1,11 +1,11 @@ #!/bin/sh clean= next=next +branch=`git symbolic-ref HEAD` while case $# in 0) break ;; esac do case "$1" in --clean) - branch=`git symbolic-ref HEAD` && test refs/heads/master = "$branch" || { echo >&2 Not on master exit 1 @@ -40,6 +40,11 @@ while read topic do rebase= done= not_done= trouble= date= topic_sha1=`git rev-parse --verify "refs/heads/$topic"` + is_current= + if test "refs/heads/$topic" = "$branch" + then + is_current=" *" + fi date=` git-rev-list -1 --pretty "$topic" | @@ -88,7 +93,7 @@ do not_done="${LF}Up to date." fi - echo "*** $topic ***$date$trouble$done$not_done" + echo "*** $topic ***$date$is_current$trouble$done$not_done" if test -z "$trouble$not_done" && test -n "$done" &&