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

[PATCH] stgit: Handle 'A' flag for new files

From
POPeter Osterlund <petero2@telia.com>
Date
Jul 28, 2005, 11:55 UTC
Message-ID
<m3d5p3kuv1.fsf@telia.com>
Hi,

Patches that add new files don't work correctly if git reports them with the 'A' flag. StGIT claims there are unresolved conflicts. This patch fixes it.

Signed-off-by: Peter Osterlund <petero2@telia.com>
diff --git a/stgit/git.py b/stgit/git.py
--- a/stgit/git.py
+++ b/stgit/git.py
@@ -274,7 +274,7 @@ def commit(message, files = [], parents 
         raise GitException, 'No changes to commit'
 
     # check for unresolved conflicts
-    if not first and len(filter(lambda x: x[0] not in ['M', 'N', 'D'],
+    if not first and len(filter(lambda x: x[0] not in ['M', 'N', 'A', 'D'],
                                 cache_files)) != 0:
         raise GitException, 'Commit failed: unresolved conflicts'
 
-- 
Peter Osterlund - petero2@telia.com
http://web.telia.com/~u89404340
Next: Catalin Marinas
Message 1 of 2 in “stgit: Handle 'A' flag for new files”
  1. stgit: Handle 'A' flag for new filesPeter Osterlund, Jul 28, 2005
  2. Catalin MarinasJul 28, 2005

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.