Open MarkusMit opened 1 year ago
Yeah, sorry, can you split this into two steps?
python3 'git-filter-repo' --force \
--path-rename 'folder_b/folder_b_3/:folder_b_3/'
python3 'git-filter-repo' --invert-paths \
--path 'folder_b/'
Yeah, since this was already some months ago, I already found a solution for it. ;-)
But my main intend was anyway that this behaviour may be worth mentioning in the documentation.
I have a repository like this:
and - as part of a bigger restructuring - I want to change it like this:
folder_b_3
should be moved up to root, and folderfolder_b
with all its remaining contents should be removed:I tried to do this with inverted path filtering (
--invert-paths
), but it seems the--path
filtering is always executed before the--path-rename
regardless of the order of the commands:So, the current (undesired) result is, that nothing of
folder_b
survives:Since "ordering issues" are mentioned with (positive) path filtering and renames in the user manual, I thought it should also be considered accordingly with inverted path filtering.