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

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

[elpa] externals/vc-got ad36649 092/145: due piccoli errori di battitura


From: ELPA Syncer
Subject: [elpa] externals/vc-got ad36649 092/145: due piccoli errori di battitura corretti
Date: Thu, 9 Sep 2021 15:58:40 -0400 (EDT)

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

    due piccoli errori di battitura corretti
    
    * una 'e' accentata
    * una maiuscola mancante ad inizio frase
---
 vc-got.el | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/vc-got.el b/vc-got.el
index aaecfe6..86e3a29 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -547,12 +547,13 @@ FILES is nil, consider all the files in DIR."
 (defun vc-got-checkin (files comment &optional _rev)
   "Commit FILES with COMMENT as commit message."
   (with-temp-buffer
-    (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)
-                  files)))
+    (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)
+                                 files))
+      (error (buffer-string)))))
 
 (defun vc-got-find-revision (file rev buffer)
   "Fill BUFFER with the content of FILE in the given revision REV."



reply via email to

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