From f5b14ff16f145d82507e7acdd933d9bf068f3ef7 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 20 Oct 2026 11:11:56 +0200 Subject: sbshadow --no: leave the hints alone A preview ran mkhint -F all the same, so an sbpull or sbshadow preview from sb-builder wrote hint files. --no now skips the sweep; --yes and the interactive run still do it. Co-Authored-By: Claude Opus 5.5 --- sbshadow | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sbshadow') diff --git a/sbshadow b/sbshadow index 25cf923..7d20edd 100755 --- a/sbshadow +++ b/sbshadow @@ -77,9 +77,13 @@ else fi # ── regenerate phantom-dep hintfiles (mkhint owns them) ─────────────────────── -# Always runs: a subtree pull can change REQUIRES even with nothing to shadow. +# Runs even with nothing to shadow (a subtree pull can change REQUIRES), but +# not on --no: a preview leaves the hints alone too. # mkhint reads ~/.config/mkhint/phantom-deps; missing tool = harmless skip. -if command -v mkhint >/dev/null 2>&1; then +if [[ $answer == n ]]; then + echo + echo "sbshadow: preview, phantom-dep hintfiles not regenerated." +elif command -v mkhint >/dev/null 2>&1; then echo echo "Regenerating phantom-dep hintfiles (mkhint -F)..." mkhint -F -- cgit v1.2.3