Files
electron/script/git-export-patches
Jeremy Apthorp 359110a651 ci: auto-3way patches and detect changes (#23031)
* ci: auto-3way patches and detect changes (#22976)

* bust cache

* update-index || true

* update patches

* lint

* idk what is up with lint

* idek

* update patches

Co-authored-by: Electron Bot <anonymous@electronjs.org>
2020-04-09 11:06:57 -04:00

27 lines
623 B
Python
Executable File

#!/usr/bin/env python
import argparse
import os
import re
import subprocess
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:])