|
|
|
@ -18,6 +18,7 @@ near the top of git-filter-repo.
|
|
|
|
|
import argparse
|
|
|
|
|
import os
|
|
|
|
|
import subprocess
|
|
|
|
|
import sys
|
|
|
|
|
try:
|
|
|
|
|
import git_filter_repo as fr
|
|
|
|
|
except ImportError:
|
|
|
|
@ -65,7 +66,14 @@ class CheckIgnores:
|
|
|
|
|
commit.file_changes = [x for x in commit.file_changes
|
|
|
|
|
if x.filename not in bad]
|
|
|
|
|
|
|
|
|
|
checker = CheckIgnores()
|
|
|
|
|
args = fr.FilteringOptions.default_options()
|
|
|
|
|
filter = fr.RepoFilter(args, commit_callback=checker.skip_ignores)
|
|
|
|
|
filter.run()
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
checker = CheckIgnores()
|
|
|
|
|
args = fr.FilteringOptions.parse_args(sys.argv[1:])
|
|
|
|
|
filter = fr.RepoFilter(args, commit_callback=checker.skip_ignores)
|
|
|
|
|
filter.run()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
main()
|
|
|
|
|
|
|
|
|
|