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

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

[elpa] externals/vc-got 3dcaa71 139/145: improve tag creation buffer


From: ELPA Syncer
Subject: [elpa] externals/vc-got 3dcaa71 139/145: improve tag creation buffer
Date: Thu, 9 Sep 2021 15:58:50 -0400 (EDT)

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

    improve tag creation buffer
    
    initialize the log-edit buffer with `Summary: tag <version>'
---
 vc-got.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/vc-got.el b/vc-got.el
index 20b73ed..c8ad954 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -872,7 +872,11 @@ Creates the TAG using the content of the current buffer."
   (let ((msg (buffer-substring-no-properties (point-min)
                                              (point-max))))
     (with-temp-buffer
-      (unless (zerop (vc-got--call "tag" "-m" msg "--" tag))
+      (unless (zerop (vc-got--call "tag"
+                                   "-m"
+                                   (log-edit-extract-headers nil msg)
+                                   "--"
+                                   tag))
         (error "[vc-got] can't create tag %s: %s" tag (buffer-string))))))
 
 (defun vc-got-create-tag (_dir name branchp)
@@ -887,6 +891,9 @@ true, NAME should create a new branch otherwise it will 
pop-up a
     (let ((buf (get-buffer-create "*vc-got tag*")))
       (with-current-buffer buf
         (erase-buffer)
+        (save-excursion
+          (insert "Summary: tag " name "\n\n"))
+        (move-end-of-line 1)
         (switch-to-buffer buf)
         (log-edit (lambda ()
                     (interactive)



reply via email to

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