]> git.ozlabs.org Git - next-scripts/blob - merge_msg
various tidy ups for the message production
[next-scripts] / merge_msg
1 #!/bin/bash
2
3 branch=""
4 [ "$1" = "-t" ] && {
5         branch="-t $2"
6         shift 2
7 }
8
9 gitk --merge -- "$@" &
10 [ "$#" ] && gvim "$@" 2>/dev/null
11
12 printf -v files "  %s\n" "$@"
13 conf="a conflict"
14 [ "$#" -gt 1 ] &&
15         conf="conflicts"
16
17 subject="manual merge of the BRANCH tree with the FIXME tree"
18
19 $(dirname $0)/message_helper $branch "$subject" <<EOF
20 FIXME: Add owner of second tree to To:
21        Add author(s)/SOB of conflicting commits.
22
23 Today's linux-next merge of the BRANCH tree got $conf in:
24
25 $files
26 between commit:
27
28    ("")
29
30 from the FIXME tree and commit:
31
32    ("")
33
34 from the BRANCH tree.
35
36 I fixed it up (see below) and can carry the fix as necessary (no action is required).
37 EOF
38
39 exit 0