c0d442364a
* build: explicitly run scripts with python3 * chore: update patches Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
23 lines
586 B
Python
Executable file
23 lines
586 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import argparse
|
|
import sys
|
|
|
|
from lib import git
|
|
|
|
def main(argv):
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("-o", "--output",
|
|
help="directory into which exported patches will be written",
|
|
required=True)
|
|
parser.add_argument("patch_range",
|
|
nargs='?',
|
|
help="range of patches to export. Defaults to all commits since the "
|
|
"most recent tag or remote branch.")
|
|
args = parser.parse_args(argv)
|
|
|
|
git.export_patches('.', args.output, patch_range=args.patch_range)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main(sys.argv[1:])
|