From 33e580e01e22fd8cf0f5ec542ab607f85d052286 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Mon, 15 Aug 2005 17:42:12 +0100 Subject: [PATCH] Add --edit option to import This option allows a patch description to be editted before being checked in. Signed-off-by: Catalin Marinas --- stgit/commands/imprt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index 2bf092c..879599b 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -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 "', help = 'use "NAME " 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() -- 2.11.0