projects-dir.mk: Fix git-show-pushable-master-branches

make git-show-pushable-master-branches output too litte for two
reasons: 1. grep -q returns zero also if no matches are found, and 2.
PROJECTS doesn't contain all relevant projects. BUILD_PROJECTS is
more meaningful.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-01-06 10:38:30 +01:00
commit f090015b48

View file

@ -341,8 +341,8 @@ git-show-non-master-branches:
done done
git-show-pushable-master-branches: git-show-pushable-master-branches:
@for p in $(PROJECTS); do \ @for p in $(BUILD_PROJECTS); do \
if git -C $$p log --oneline origin/master.. | grep -q .; then \ if git -C $$p log --oneline origin/master.. | grep . >/dev/null; then \
echo ======================= $$p ;\ echo ======================= $$p ;\
git -C $$p log --oneline origin/master.. ;\ git -C $$p log --oneline origin/master.. ;\
fi ;\ fi ;\