You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
431 B
Python
19 lines
431 B
Python
#!/usr/bin/env python3
|
|
|
|
"""
|
|
Please see the
|
|
***** API BACKWARD COMPATIBILITY CAVEAT *****
|
|
near the top of git-filter-repo.
|
|
"""
|
|
|
|
import git_filter_repo as fr
|
|
|
|
def my_commit_callback(commit, metadata):
|
|
if commit.branch == b"refs/heads/master":
|
|
commit.branch = b"refs/heads/develop"
|
|
|
|
args = fr.FilteringOptions.default_options()
|
|
args.force = True
|
|
filter = fr.RepoFilter(args, commit_callback = my_commit_callback)
|
|
filter.run()
|