]> git.eshelyaron.com Git - emacs.git/commitdiff
; vc-git-modify-change-comment: Restore ignoring --amend
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 23 Oct 2024 02:57:40 +0000 (10:57 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Oct 2024 05:06:44 +0000 (07:06 +0200)
This was accidentally lost when installing this new feature on
master.

(cherry picked from commit e756d4373bdf1b076ee284c46637855908dd10d7)

lisp/vc/vc-git.el

index e039133ede584cbc3ec9b9d38aac57d15ee44ef7..899358339f3d96723a4f9305eb5cfb68e9d50117 100644 (file)
@@ -1986,7 +1986,8 @@ This requires git 1.8.4 or later, for the \"-L\" option of \"git log\"."
 
 (defun vc-git-modify-change-comment (files rev comment)
   (vc-git--assert-allowed-rewrite rev)
-  (let* ((args (vc-git--log-edit-extract-headers comment))
+  (let* ((args (delete "--amend"
+                       (vc-git--log-edit-extract-headers comment)))
          (message (format "amend! %s\n\n%s" rev (pop args)))
          (msg-file
           ;; On MS-Windows, pass the message through a file, to work