]> git.ozlabs.org Git - next-scripts/blob - merge_msg
add get_commit
[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. This
37 is now fixed as far as linux-next is concerned, but any non trivial
38 conflicts should be mentioned to your upstream maintainer when your tree
39 is submitted for merging.  You may also want to consider cooperating
40 with the maintainer of the conflicting tree to minimise any particularly
41 complex conflicts.
42 EOF
43
44 exit 0