Meta/ML: correctly detect topic that is not in 'master'

todo
Junio C Hamano 2024-07-11 14:14:42 -07:00
parent dee57cc9f0
commit 47e36b3df7
1 changed files with 6 additions and 2 deletions

8
ML
View File

@ -35,7 +35,7 @@ search_topics () {
continue
fi

ago= lg=0
ago= lg=-1
fp=$(
sed -ne "s/^\($x40\) $x40 $tip"'$/\1/p' "$tmp"
) &&
@ -44,7 +44,11 @@ search_topics () {
git show -s --format='%ad' --date=short $fp
) &&
lg=$(git log --oneline $target..$tip | wc -l)
if test $lg != 0

if test $lg = -1
then
echo "# $topic not yet merged to $here"
elif test $lg != 0
then
echo "$topic # $lg${ago+ ($ago)}${comment+ $comment}"
else