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

[StGit PATCH] Fix uncommit status message

From
Karl Hasselström <kha@treskal.com>
Date
Jul 17, 2008, 20:43 UTC
Message-ID
<20080717204321.23542.77124.stgit@yoghurt>
It should say
  Uncommitting to 8561b089afbaed2651591e5a4574fdca451d82f2 (exclusive) ...
not
  Uncommitting to Commit<sha1: 8561b089afbaed2651591e5a4574fdca451d82f2, data: None> (exclusive) ...
(though arguably, the sha1 should be abbreviated as well).
Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 stgit/commands/uncommit.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/stgit/commands/uncommit.py b/stgit/commands/uncommit.py
index eb39fcc..0f43b49 100644
--- a/stgit/commands/uncommit.py
+++ b/stgit/commands/uncommit.py
@@ -104,9 +104,9 @@ def func(parser, options, args):
             next_commit = get_parent(next_commit)
     else:
         if options.exclusive:
-            out.start('Uncommitting to %s (exclusive)' % to_commit)
+            out.start('Uncommitting to %s (exclusive)' % to_commit.sha1)
         else:
-            out.start('Uncommitting to %s' % to_commit)
+            out.start('Uncommitting to %s' % to_commit.sha1)
         while True:
             if next_commit == to_commit:
                 if not options.exclusive:
Message 1 of 1 in “Fix uncommit status message”
  1. Fix uncommit status messageKarl Hasselström, Jul 17, 2008

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.