Skip to content

Commit a525de7

Browse files
author
Junio C Hamano
committed
A bit more commenting and cleaning up.
1 parent 6b9ffbe commit a525de7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

check-topic-merges

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
#!/bin/sh
2+
#
3+
# Run this script _after_ making a proposed merge into a copy of
4+
# the target branch (e.g. "master") to see if it contains unrelated
5+
# merging back from the upstream.
6+
#
27
F=`git diff-tree -r --name-only HEAD^ HEAD`
38
echo "The topic modifies these paths:"
49
echo "$F" | sed -e 's/^/ /'
510

6-
# Documentation/git-cvsexportcommit.txt
7-
# git-cvsexportcommit.perl
8-
# git-cvsserver.perl
9-
B=`git merge-base master HEAD`
10-
# 45f75a0167b4a4693f2c6005bf7db231ca91ecc8 (master)
1111
_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
1212
_x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
1313
git rev-list --parents master..HEAD^2 |
1414
sed -ne "/^$_x40 $_x40 $_x40/p" |
1515
while read merge first second
1616
do
1717
echo
18-
# first is the previous cvs topic tip, second is what was merged into
18+
# First is the previous cvs topic tip, second is what was merged into
1919
# it. Does the merge have anything to do with adjust the topic to
2020
# updated upstream?
2121
git name-rev "$merge"
@@ -27,4 +27,3 @@ do
2727
echo "$out" ;;
2828
esac
2929
done
30-

0 commit comments

Comments
 (0)