no intended change in semantics
#!/bin/bash
-branch=""
-[ "$1" = "-t" ] && {
- branch="-t $2"
+branch=''
+if [ "X$1" = 'X-t' ]; then
+ branch=( -t "$2" )
shift 2
-}
+fi
gitk --merge -- "$@" &
-# [ "$#" ] && gvim "$@" 2>/dev/null
-printf -v files " %s\n" "$@"
-conf="a conflict"
-[ "$#" -gt 1 ] &&
- conf="conflicts"
+printf -v files ' %s\n' "$@"
+conf='a conflict'
+if [ "$#" -gt 1 ]; then
+ conf='conflicts'
+fi
-subject="manual merge of the BRANCH tree with the FIXME tree"
+subject='manual merge of the BRANCH tree with the FIXME tree'
-$(dirname $0)/message_helper $branch "$subject" <<EOF
+"$(dirname "$0")/message_helper" "${branch[@]}" "$subject" <<EOF
FIXME: Add owner of second tree to To:
Add author(s)/SOB of conflicting commits.