# -*- mode: snippet -*-
# name: guix-commit-message-update-package
# key: update
# condition: git-commit-mode
# --
gnu: ${1:`(with-temp-buffer
(magit-git-wash #'magit-diff-wash-diffs
"diff" "--staged")
(goto-char (point-min))
(when (re-search-forward "^[ ]*(define-public \\(\\S-+\\)" nil 'noerror)
(match-string-no-properties 1)))`}: Update to ${2:`(with-temp-buffer
(magit-git-wash #'magit-diff-wash-diffs
"diff" "--staged")
(goto-char (point-min))
(search-forward "name" nil 'noerror)
(search-forward "+" nil 'noerror) ; first change
(when (and (search-forward "version " nil 'noerror)
(looking-at-p "\""))
(let ((end (save-excursion (search-forward "\")" nil 'noerror))))
(when end
(forward-char)
(buffer-substring-no-properties (point) (- end 2))))))`}.
* `(car (magit-staged-files))` ($1): Update to $2.$0
`(mapconcat (lambda (file) (concat "* " file)) (cdr (magit-staged-files)) "\n")`yrefslogtreecommitdiff
|
Age | Commit message (Expand) | Author |
2022-12-18 | Update NEWS. | Ludovic Courtès |
2022-12-17 | Update NEWS. | Marius Bakke |
2022-12-02 | Update NEWS. | Ludovic Courtès |
2022-11-23 | NEWS: Update it....* NEWS: Shepherd is already at 0.9.3 now.
| Jonathan Brielmaier |
2022-11-16 | Update NEWS. | Maxim Cournoyer |
2022-10-13 | NEWS: Update it....* NEWS: Add an entry about 'guix shell' --emulate-fhs option.
| Mathieu Othacehe |
2022-10-07 | Update NEWS....* NEWS: Add new entry for installation script improvements.
| Maxim Cournoyer |
2022-09-28 | Update NEWS....* NEWS: Add new services for the 1.4.0.
| Mathieu Othacehe |
2022-09-26 | NEWS: Update it....* NEWS: Add an entry about WSL images.
| Mathieu Othacehe |
2022-09-24 | Update NEWS. | Ludovic Courtès |
2022-09-23 | Update NEWS. | Maxim Cournoyer |
2022-09-19 | Update NEWS....* NEWS: Mention Shepherd 0.9.2 upgrade.
| Mathieu Othacehe |
2022-09-16 | Update NEWS....Entries extracted from:
git log 3eadcdc63..version-1.4.0
* NEWS: Update entries for v1.4.0
| Mathieu Othacehe |
2022-09-15 | Update NEWS....This covers the commits made between v1.3.0..3eadcdc6^.
* NEWS: New entries for the 1.4.0 upcoming release.
| Maxim Cournoyer |
2022-09-14 | Update NEWS....These news were extracted from the output of:
git log --reverse v1.3.0..03eb0b1be2cfedd0d9a66fef0edc53a17f7653a5.
* NEWS: Update entries for v1.4.0.
| Maxim Cournoyer |