Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter-repo: also allow --path-rename arguments before --path arguments
The manual says Also, `--path-rename` brings up ordering issues; all path arguments are applied in order which suggests that you can have --path-rename arguments both before and after --path arguments, but having --path-rename arguments before --path arguments was broken. It did work once upon a time, but was broken by 5c4637f (Documentation: add guides for people converting from filter-branch or BFG, 2020-05-16) because it stored the filename in both `pathname` and `full_pathname`, and would have renames affect only `full_pathname`, while filtering would operate only on `pathname`. The existence of allowing filtering based on basename really does require us to have both variables, but since we have both, ensure that path_rename updates both. Signed-off-by: Elijah Newren <[email protected]>
- Loading branch information