This is a simple program that will add Signed-off-by: tags to a range of
commits. Example usage, to add a signed-off-by trailer to every commit that
is not in next but is in any of master, develop, or maint:
signed-off-by master develop maint ^next
More likely called as:
signed-off-by master~4..master
There's no real reason to use this script since `rebase --signoff` exists;
it's mostly just a demonstration of what could be done.
"""
"""
Please see the
***** API BACKWARD COMPATIBILITY CAVEAT *****
near the top of git-filter-repo.
"""
import argparse
import re
import subprocess
try:
import git_filter_repo as fr
except ImportError:
raise SystemExit("Error: Couldn't find git_filter_repo.py. Did you forget to make a symlink to git-filter-repo named git_filter_repo.py or did you forget to put the latter in your PYTHONPATH?")
parser = argparse.ArgumentParser(
description="Add 'Signed-off-by:' tags to a range of commits")