me
/
guix
Archived
1
0
Fork 0

etc: snippets: Fix name extraction.

* etc/snippets/text-mode/guix-commit-message-add-package: Fix name
extraction. This is a follow-up to 988a49c78e.
master
Nicolas Goaziou 2020-12-04 18:19:39 +01:00
parent cae3e92f78
commit 39e8bc2ab8
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@
gnu: Add ${1:`(with-temp-buffer gnu: Add ${1:`(with-temp-buffer
(magit-git-wash #'magit-diff-wash-diffs (magit-git-wash #'magit-diff-wash-diffs
"diff" "--staged") "diff" "--staged")
(beginning-of-buffer) (goto-char (point-min))
(when (search-forward "+(define-public " nil 'noerror) (when (re-search-forward "\\+(define-public \\(\\S-+\\)" nil 'noerror)
(thing-at-point 'sexp 'no-properties)))`}. (match-string-no-properties 1)))`}.
* `(car (magit-staged-files))` ($1): New variable. * `(car (magit-staged-files))` ($1): New variable.