Fix unstowing with `--compat --dotfiles`
commit93fc195ddb5588a3ebeb4d353909b8e58e45bf0b
authorAdam Spiers <stow@adamspiers.org>
Sun, 7 Apr 2024 16:19:37 +0000 (7 17:19 +0100)
committerAdam Spiers <stow@adamspiers.org>
Sun, 7 Apr 2024 16:21:44 +0000 (7 17:21 +0100)
tree9bfc43f42cbdd2d4f4efe6e0ce7969284a2cae85
parent723ddcf3a4dcc0480585e2c831363652c5bbe5aa
Fix unstowing with `--compat --dotfiles`

Unstowing with `--dotfiles` didn't work with `--compat`, because when
traversing the target tree rather than the package tree, there was no
mechanism for mapping a `.foo` file or directory back to its original
`dot-foo` and determine whether it should be unstowed.

So add a reverse `unadjust_dotfile()` mapping mechanism to support
this.
lib/Stow.pm.in
lib/Stow/Util.pm.in
t/dotfiles.t