; vc-git-modify-change-comment: Restore ignoring --amend

This was accidentally lost when installing this new feature on
master.
This commit is contained in:
Sean Whitton 2024-10-23 10:57:40 +08:00
parent c259db1d45
commit e756d4373b

View 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