chiark / gitweb /
Documentation: Rename link macros
[stgit] / stgit / commands / new.py
index f36fbd6148bb41d0d02021506cd4d9327eac5fd0..2c984310ab73022e08212867b33a6260b444b06e 100644 (file)
@@ -28,7 +28,7 @@ description = """
 Create a new, empty patch on the current stack. The new patch is
 created on top of the currently applied patches, and is made the new
 top of the stack. Uncommitted changes in the work tree are not
 Create a new, empty patch on the current stack. The new patch is
 created on top of the currently applied patches, and is made the new
 top of the stack. Uncommitted changes in the work tree are not
-included in the patch -- that is handled by stglink:refresh[].
+included in the patch -- that is handled by linkstg:refresh[].
 
 The given name must be unique in the stack, and may only contain
 alphanumeric characters, dashes and underscores. If no name is given,
 
 The given name must be unique in the stack, and may only contain
 alphanumeric characters, dashes and underscores. If no name is given,
@@ -39,8 +39,9 @@ the patch, unless the '--message' flag already specified one. The
 'patchdescr.tmpl' template file (if available) is used to pre-fill the
 editor."""
 
 'patchdescr.tmpl' template file (if available) is used to pre-fill the
 editor."""
 
-options = (argparse.author_committer_options()
-           + argparse.message_options()
+args = []
+options = (argparse.author_options()
+           + argparse.message_options(save_template = True)
            + argparse.sign_options())
 
 directory = common.DirectoryHasRepositoryLib()
            + argparse.sign_options())
 
 directory = common.DirectoryHasRepositoryLib()
@@ -71,9 +72,8 @@ def func(parser, options, args):
     if options.message != None:
         cd = cd.set_message(options.message)
 
     if options.message != None:
         cd = cd.set_message(options.message)
 
-    # Modify author and committer data.
-    cd = (cd.set_author(options.author(cd.author))
-            .set_committer(options.committer(cd.committer)))
+    # Modify author data.
+    cd = cd.set_author(options.author(cd.author))
 
     # Add Signed-off-by: or similar.
     if options.sign_str != None:
 
     # Add Signed-off-by: or similar.
     if options.sign_str != None: