projects-dir.mk: Add diff-projects target
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m6s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m18s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 3m40s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m7s
CI / Packaging test (push) Successful in 0s

The diff-all and diff targets diff all projects in the workspace
without filtering.

Add a target "diff-projects". It sets PGIT_SH_PROJECTS to the list of
projects from build-order, limiting the diff to the dependency
closure around $(PROJECTS).

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-08-07 19:08:09 +02:00
commit 6e988bea21
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61
2 changed files with 3 additions and 1 deletions

View file

@ -309,6 +309,8 @@ pull-all: purge git-get git-pull-all
diff-all diff: $(SSH_WRAPPER_SH)
$(PGIT_SH) --porcelain diff
diff-projects:
PGIT_SH_PROJECTS="$(patsubst %/.git,%,$(wildcard $(addsuffix /.git,$(shell make -s build-order))))" $(PGIT_SH) --porcelain diff
get-official: git-get-official
get-maintainer: git-get-maintainer