control=../real_control
[ -f real_control ] && control=real_control
-branch=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //' | sed 's/ .*$//')
-branch=${branch#quilt/}
-branch=${branch%%/*}
+branch=""
+[ "$1" = "-t" ] && {
+ branch=$2
+ shift 2
+}
+
+[ "$branch" ] || {
+ branch=$(grep '^Merging ' $log | tail -1 | sed 's/^Merging //' | sed 's/ .*$//')
+ branch=${branch#quilt/}
+ branch=${branch%%/*}
+}
contact=$(awk -F ' ' '$3=="'"$branch"'" { print $1; }' $control)
greeting=${contact%% *}