mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
filter-repo: remove rename-related unused code
The original idea was to add --path-rename-(glob|regex) options, but I like the general flexibility of --filename-callback better for special cases and keeping the number of command line options at least slightly in check. Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
4b26fcd50c
commit
cb9e3dd92c
@ -1833,9 +1833,6 @@ class FilteringOptions(object):
|
||||
if suffix == 'rename':
|
||||
mod_type = 'rename'
|
||||
match_type = 'prefix'
|
||||
elif suffix.startswith('rename-'):
|
||||
mod_type = 'rename'
|
||||
match_type = suffix[len('rename-'):]
|
||||
else:
|
||||
mod_type = 'filter'
|
||||
match_type = suffix
|
||||
|
Loading…
Reference in New Issue
Block a user