I need to rewrite a branch, discarding all changes made to a specific subfolder (e.g. whose path is path/to/folder) and its contents between a range of revisions starting at a specified start revision and ending at HEAD. Changes prior to the start revision are accepted.
I've considered using git-filter-branch to do this, but don't know what filter to use. I think using 'git-reset' to the subfolder for each commit might work, but this post has me questioning whether this approach will work.
Question: How do I rewrite the branch as specified in the first paragraph above?