git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[StGit PATCH] Allow "stg add" when we have no stack

From
Karl Hasselström <kha@treskal.com>
Date
Sep 2, 2007, 23:59 UTC
Message-ID
<20070902235846.23778.11160.stgit@yoghurt>

There's simply no reason not to allow this. It behaves just like git-add, so it's well-defined enough.

Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 stgit/commands/add.py |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/stgit/commands/add.py b/stgit/commands/add.py
index 7f5a0b3..fc9c5a7 100644
--- a/stgit/commands/add.py
+++ b/stgit/commands/add.py
@@ -40,7 +40,4 @@ 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)
Message 1 of 1 in “Allow "stg add" when we have no stack”
  1. Allow "stg add" when we have no stackKarl Hasselström, Sep 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.