fix: honor --exclude and --git when --zip is used (#1097)
ZipDirectory built the archive without consulting the ignoredPaths map (--git) or the exclusions slice (--exclude). The cli.go post-walk filter ran after, but it could only match against the resulting .zip filename, not the contents inside, so excluded paths leaked into the archive. ZipDirectory now accepts ignoredPaths and exclusions and skips matching entries during the walk, mirroring the non-zip filtering behaviour. Closes #1087.
J
John Costa committed
0a819a84bf92100982904ded44b708a8a45cf963
Parent: 11bbae1
Committed by GitHub <noreply@github.com>
on 5/6/2026, 1:46:13 PM