From cb9e3dd92c32895a12107819b17b32e1de1ff099 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Fri, 15 Mar 2019 08:11:37 -0700 Subject: [PATCH] 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 --- git-filter-repo | 3 --- 1 file changed, 3 deletions(-) diff --git a/git-filter-repo b/git-filter-repo index b9ab92e..4e53632 100755 --- a/git-filter-repo +++ b/git-filter-repo @@ -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