I had a use case where I needed to replace texts but only under specific subpaths. I did not find an option to do that directly (--path would delete all other files) and ended up using --blob-callback that implements an internal check of the filename path.
I think this may not be a rare use case and it would be convenient to have an option for it. I would be happy to contribute to the implementation, if this suggest is approved.
Behavior:
- if subpath exists in ref, check for replacements for files under this path. Keep all other files unchanged.
- if subpath does not exist in ref, keep ref unchanged.