Package: git-buildpackage Using postunpack command is possible to change the content of the source directories, with something way more advanced than `filters`, however once the content is modified, it will only be part of the repo, while it's not possible to repack the resulting orig file.
This can be quite convenient when projects are provided as sub-projects and some advanced filtering is needed. For example, the mozilla source provides also mozjs sources, and it's possible to generate the orig for such package using a script they provide, in debian we can't regenerate such origin just using gbp import-orig. I.e. this would be what I'd like to achieve without having to use filters at all, and having a matching tarball https://salsa.debian.org/3v1n0-guest/mozjs68/commit/35e8885c