add verbose to dry-run patching

This commit is contained in:
Meliox 2026-06-11 21:56:12 +02:00
parent bf01a8f5fe
commit e075cf0192

View File

@ -72,8 +72,8 @@ list_modules() {
}
# Patch-state helpers (all use zero fuzz for deterministic detection).
_dry_forward() { patch -p0 -F0 -f --dry-run -s < "$1" >/dev/null 2>&1; }
_dry_reverse() { patch -R -p0 -F0 -f --dry-run -s < "$1" >/dev/null 2>&1; }
_dry_forward() { patch -p0 -F0 -f --dry-run --verbose < "$1"; }
_dry_reverse() { patch -R -p0 -F0 -f --dry-run --verbose < "$1"; }
is_applied() { _dry_reverse "$1"; }
can_apply() { _dry_forward "$1"; }
do_apply() { patch -p0 -F0 -f -s < "$1"; }