make: do not show a diff on Private directory, minor regression in plugins

This commit is contained in:
Franco Fichtner 2025-08-05 11:51:39 +02:00
parent 3d52a8203b
commit c7b3a87699

View file

@ -50,11 +50,15 @@ ensure-stable:
${GIT} config branch.${CORE_STABLE}.remote origin; \
fi
.if exists(${.CURDIR}/Private)
GIT_PRIVATE= ':!Private/'
.endif
diff: ensure-stable
@if [ "$$(${GIT} tag -l | grep -cx '${diff_ARGS:[1]}')" = "1" ]; then \
${GIT} diff --stat -p ${diff_ARGS:[1]}; \
${GIT} diff --stat -p ${diff_ARGS:[1]} ${GIT_PRIVATE}; \
else \
${GIT} diff --stat -p ${CORE_STABLE} ${diff_ARGS}; \
${GIT} diff --stat -p ${CORE_STABLE} ${diff_ARGS} ${GIT_PRIVATE}; \
fi
feed: ensure-stable