emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-got e7747ce 109/145: use log-edit-extract-headers in


From: ELPA Syncer
Subject: [elpa] externals/vc-got e7747ce 109/145: use log-edit-extract-headers instead of the ugly workaround
Date: Thu, 9 Sep 2021 15:58:44 -0400 (EDT)

branch: externals/vc-got
commit e7747ce0d28821e986ee6b30a87968e0f677f3b5
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    use log-edit-extract-headers instead of the ugly workaround
---
 vc-got.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/vc-got.el b/vc-got.el
index 1abed87..10b723e 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -574,10 +574,7 @@ FILES is nil, consider all the files in DIR."
   "Commit FILES with COMMENT as commit message."
   (with-temp-buffer
     (unless (zerop (vc-got--call "commit" "-m"
-                                 ;; emacs add ``Summary:'' at the start of the 
commit
-                                 ;; message.  vc-git doesn't seem to treat 
this specially.
-                                 ;; Since it's annoying, remove it.
-                                 (string-remove-prefix "Summary: " comment)
+                                 (log-edit-extract-headers nil comment)
                                  files))
       (error (buffer-string)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]