Add support to remove headers
I think it could be nice to have a removeheader option which can be used in the same way reuse addheader is used. Currently you can replace the current header but there is no option to remove them.
Think about a scenario where you have several files with a huge project. After running reuse addheader --skip-unrecognised src/*/*.* you realized that headers are added to some files (i.e. .txt files) that you don't intended to. You could simply exclude these changes from your commit or revert changes in these files with git. However it would be nice to have reuse removeheader --skip-unrecognised src/*/*.txt to make user feel safer.
This feature will be needed especially if #158 is ever implemented.
I was also just missing this. The context was that we had a half-ready PR for adding REUSE, but we've decided to switch to a different license, and to include other email addresses.
One option for me would be to remove the old headers, then add new ones. Having support from the tool for this would be great!
Hi! This repository is being migrated away from GitHub towards Codeberg. More context can be found in #865. This issue can henceforth be found at https://codeberg.org/fsfe/reuse-tool/issues/330. Any comments subsequent to this comment will not be migrated.