branch: externals/vc-got
commit e7747ce0d28821e986ee6b30a87968e0f677f3b5
Author: Omar Polo <[email protected]>
Commit: Omar Polo <[email protected]>
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)))))