]> git.ozlabs.org Git - next-scripts/blob - merge_msg
only put the FIXME text in the merge fix messages
[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 FIXME: Add owner of second tree to To:
25        Add author(s)/SOB of conflicting commits.
26
27 Today's linux-next merge of the BRANCH tree got $conf in:
28
29   $file
30
31 between commit:
32
33    ("")
34
35 from the FIXME tree and commit:
36
37    ("")
38
39 from the BRANCH tree.
40
41 I fixed it up (see below) and can carry the fix as necessary (no action
42 is required).
43 EOF
44
45 exit 0