]> git.ozlabs.org Git - next-scripts/blob - merge_msg
merge_msg: Add placeholders so we don't forget to fill them in
[next-scripts] / merge_msg
1 #!/bin/bash
2
3 branch=""
4 [ "$1" = "-t" ] && {
5         branch="-t $2"
6         shift 2
7 }
8
9 file="$*"
10
11 gitk --merge -- $file &
12 [ "$file" ] && gvim $file 2>/dev/null
13
14 conf="a conflict"
15 [ "$#" -gt 1 ] && {
16         file=${file// /, }
17         file=$(echo $file | sed 's/,\([^,]*\)$/ and\1/')
18         conf="conflicts"
19 }
20
21 subject="manual merge of the BRANCH tree with the FIXME tree"
22
23 $(dirname $0)/message_helper $branch "$subject" <<EOF
24 Today's linux-next merge of the BRANCH tree got $conf in $file between commit  ("") from the FIXME tree and commit  ("") from the BRANCH tree.
25
26 I fixed it up (see below) and can carry the fix as necessary (no action
27 is required).
28 EOF
29
30 exit 0