chiark / gitweb /
Add the --reject option to fold
[stgit] / stgit / commands / commit.py
index 7d467247266951f08664365a48e87e6aaa898b2b..dd8d6e6ce84a51fdc257c7174507d1fc5806349f 100644 (file)
@@ -19,8 +19,10 @@ from stgit.argparse import opt
 from stgit.commands import common
 from stgit.lib import transaction
 from stgit.out import *
 from stgit.commands import common
 from stgit.lib import transaction
 from stgit.out import *
+from stgit import argparse
 
 help = 'Permanently store the applied patches into the stack base'
 
 help = 'Permanently store the applied patches into the stack base'
+kind = 'stack'
 usage = ['',
          '<patchnames>',
          '-n NUM',
 usage = ['',
          '<patchnames>',
          '-n NUM',
@@ -39,6 +41,8 @@ The -n/--number option specifies the number of applied patches to
 commit (counting from the bottom of the stack). If -a/--all is given,
 all applied patches are committed."""
 
 commit (counting from the bottom of the stack). If -a/--all is given,
 all applied patches are committed."""
 
+args = [argparse.patch_range(argparse.applied_patches,
+                             argparse.unapplied_patches)]
 options = [
     opt('-n', '--number', type = 'int',
         short = 'Commit the specified number of patches'),
 options = [
     opt('-n', '--number', type = 'int',
         short = 'Commit the specified number of patches'),