Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 872e2ef

Browse files
committed
Meta/GRADUATED: exclude topics whose fork-points are on master
1 parent 8a7f1ba commit 872e2ef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

GRADUATED

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ one_topic () {
6565
case " $topics" in *" $topic "*) return ;; esac
6666
topics="$topics$topic "
6767

68+
contam_count=$(git rev-list "maint..$tip" | grep -F "$merges_to_master" | wc -l)
69+
if test "$contam_count" != 0
70+
then
71+
echo "**** forked from master $topic ****"
72+
return
73+
fi
74+
6875
maint_count=$(git rev-list "maint..$tip" | wc -l)
6976
if test "$maint_count" = 0
7077
then
@@ -120,6 +127,8 @@ one_topic () {
120127
esac
121128
}
122129

130+
merges_to_master="$(git rev-list --merges $base..master)"
131+
123132
git log --first-parent --min-parents=2 --max-parents=2 \
124133
--format='%ci %H %P %s' "$base..master" | {
125134
while read date time zone commit parent tip subject

0 commit comments

Comments
 (0)