electron/script/git-export-patches

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
585 B
Text
Raw Normal View History

#!/usr/bin/env python
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:])