X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/fcee87cf868f18a3d684c3ba71232574f92c7b11..e45e1f855d8a7cd3b4183612122aa5c6de7f7b8d:/stgit/commands/add.py diff --git a/stgit/commands/add.py b/stgit/commands/add.py index 7bad07c..7f5a0b3 100644 --- a/stgit/commands/add.py +++ b/stgit/commands/add.py @@ -25,7 +25,11 @@ from stgit import stack, git help = 'add files or directories to the repository' -usage = """%prog """ +usage = """%prog [options] + +Add the files or directories passed as arguments to the +repository. When a directory name is given, all the files and +subdirectories are recursively added.""" options = [] @@ -36,4 +40,7 @@ def func(parser, options, args): if len(args) < 1: parser.error('incorrect number of arguments') + if not crt_series.get_current(): + raise CmdException, 'No patches applied' + git.add(args)