Add --edit option to import
authorCatalin Marinas <catalin.marinas@gmail.com>
Mon, 15 Aug 2005 16:42:12 +0000 (17:42 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 15 Aug 2005 16:42:12 +0000 (17:42 +0100)
This option allows a patch description to be editted before being
checked in.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/imprt.py

index 2bf092c..879599b 100644 (file)
@@ -42,6 +42,9 @@ options = [make_option('-m', '--mail',
                        action = 'store_true'),
            make_option('-n', '--name',
                        help = 'use NAME as the patch name'),
+           make_option('-e', '--edit',
+                       help = 'invoke an editor for the patch description',
+                       action = 'store_true'),
            make_option('-a', '--author', metavar = '"NAME <EMAIL>"',
                        help = 'use "NAME <EMAIL>" as the author details'),
            make_option('--authname',
@@ -192,7 +195,7 @@ def func(parser, options, args):
     sys.stdout.flush()
 
     git.apply_patch(filename)
-    crt_series.refresh_patch()
+    crt_series.refresh_patch(edit = options.edit)
 
     print 'done'
     print_crt_patch()