mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-06-03 10:55:20 +02:00
Merge branch 'fm/clean-ignore-arg-passthru'
Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
commit
f955eb7ba5
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user