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

[PATCH] stgit: export without --range does not export the last patch

From
Bryan Larsen <bryanlarsen@yahoo.com>
Date
Jul 14, 2005, 06:27 UTC
Message-ID
<20050714062744.21779.87923.sendpatchset@bryan-larsens-ibook-g4.local>
In-Reply-To
<20050714062733.21779.33599.sendpatchset@bryan-larsens-ibook-g4.local>
The top patch is never exported.
Signed-off-by: Bryan Larsen <bryan.larsen@gmail.com>
---
 stgit/commands/export.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/stgit/commands/export.py b/stgit/commands/export.py
--- a/stgit/commands/export.py
+++ b/stgit/commands/export.py
@@ -90,7 +90,7 @@ def func(parser, options, args):
             raise MainException, 'Incorrect patch range order'
     else:
         start_idx = 0
-        stop_idx = -1
+        stop_idx = len(applied)
 
     patches = applied[start_idx:stop_idx]
 
Previous: Bryan LarsenNext: Catalin Marinas
Message 2 of 4 in “stgit: allow spaces in filenames (second try)”
  1. stgit: allow spaces in filenames (second try)Bryan Larsen, Jul 14, 2005
  2. stgit: export without --range does not export the last patchBryan Larsen, Jul 14, 2005
  3. Catalin MarinasJul 14, 2005
  4. Catalin MarinasJul 14, 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.