#!/bin/bash branch='' if [ "X$1" = 'X-t' ]; then branch=( -t "$2" ) shift 2 fi gitk --merge -- "$@" & 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' "$(dirname "$0")/message_helper" "${branch[@]}" "$subject" <