make: diff for tag if requested

This commit is contained in:
Franco Fichtner 2022-02-28 10:56:06 +01:00
parent 35c53f1010
commit 07a012bb55

View File

@ -449,7 +449,11 @@ ensure-stable:
fi
diff: ensure-stable
@git diff --stat -p stable/${CORE_ABI} ${.CURDIR}/${diff_ARGS:[1]}
@if [ "$$(git tag -l | grep -cx '${diff_ARGS:[1]}')" = "1" ]; then \
git diff --stat -p ${diff_ARGS:[1]}; \
else \
git diff --stat -p stable/${CORE_ABI} ${.CURDIR}/${diff_ARGS:[1]}; \
fi
mfc: ensure-stable clean-mfcdir
.for MFC in ${mfc_ARGS}
@ -482,7 +486,7 @@ rebase:
@git rebase -i
@git checkout master
log:
log ensure-stable:
@git log --stat -p stable/${CORE_ABI}
push: