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

[stgit PATCH] stgit.el: Stop "Summary:" being added to all commit msgs.

From
Peter TB Brett <peter@peter-b.co.uk>
Date
Jun 13, 2011, 08:37 UTC
Message-ID
<077cac32c74edaff2f20c84897bfc171@mail.theimps.com>

In Emacs 23.3.1, if `log-edit' is called with a non-nil `setup' argument, it unconditionally appends "Summary:" to the log buffer. It causes great annoyance to have to remember to find and delete this string on every patch commit message edit with stgit-mode. This patch makes `stgit-edit' call `log-edit' with a nil `setup' argument.

Did I mention that this is *incredibly annoying*?
See also https://gna.org/bugs/?18206
Peter
-- 
Peter Brett <peter@peter-b.co.uk>
Remote Sensing Research Group
Surrey Space Centre


From 4cdf9770144933c5cd2b0399cc084841c1d5c46d Mon Sep 17 00:00:00 2001
From: Peter TB Brett <peter@peter-b.co.uk>
Date: Mon, 13 Jun 2011 09:33:12 +0100
Subject: [PATCH] stgit.el: Stop "Summary:" being added to all commit msgs.

In Emacs 23.3.1, if `log-edit' is called with a non-nil `setup'
argument, it unconditionally appends "Summary:" to the log buffer.  It
causes great annoyance to have to remember to find and delete this
string on every patch commit message edit with stgit-mode.  This patch
makes `stgit-edit' call `log-edit' with a nil `setup' argument.

Signed-off-by: Peter TB Brett <peter@peter-b.co.uk>
---
 contrib/stgit.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/stgit.el b/contrib/stgit.el
index c71df4b..f640e5e 100644
--- a/contrib/stgit.el
+++ b/contrib/stgit.el
@@ -2298,7 +2298,7 @@ file ended up. You can then jump to the file with \
   (let ((patchsym (stgit-patch-name-at-point t t))
         (edit-buf (get-buffer-create "*StGit edit*"))
         (dir default-directory))
-    (log-edit 'stgit-confirm-edit t nil edit-buf)
+    (log-edit 'stgit-confirm-edit nil nil edit-buf)
     (set (make-local-variable 'stgit-edit-patchsym) patchsym)
     (setq default-directory dir)
     (let ((standard-output edit-buf))
-- 
1.7.6.rc1
Next: Gustav Hållberg
Message 1 of 3 in “stgit.el: Stop "Summary:" being added to all commit msgs.”
  1. stgit.el: Stop "Summary:" being added to all commit msgs.Peter TB Brett, Jun 13, 2011
  2. Gustav HållbergJun 13, 2011
  3. Peter TB BrettJun 13, 2011

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.