aboutsummaryrefslogtreecommitdiff
path: root/etc/snippets/text-mode/guix-commit-message-update-package
blob: 2cdb6ea28d7c9b609217492615c95d3f8584b610 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- 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")
           (beginning-of-buffer)
           (when (search-forward "(define-public " nil 'noerror)
             (thing-at-point 'sexp 'no-properties)))`}: Update to ${2:`(with-temp-buffer
    (magit-git-wash #'magit-diff-wash-diffs
      "diff" "--staged")
    (beginning-of-buffer)
    (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")`
b'>nls: Update 'fr' translation.Julien Lepiller 2020-02-14nls: Update 'de' translation of the manual.Julien Lepiller 2020-02-14nls: Update 'es' translation of the manual.Julien Lepiller 2020-02-14nls: Update 'pt_BR' translation.Julien Lepiller 2019-09-24Merge branch 'master' into core-updatesLudovic Courtès 2019-09-21guix package: Add 'guix show' alias....zimoun 2019-09-18doc: Add Guix Cookbook....Ricardo Wurmus 2019-09-06Merge branch 'master' into core-updatesMark H Weaver 2019-08-31nls: Update 'fr' translation of the manual.Julien Lepiller 2019-08-31nls: Update 'es' translation of the manual.Julien Lepiller 2019-08-29Merge branch 'master' into core-updatesMark H Weaver 2019-08-25nls: Update 'sv' translation.Ludovic Courtès 2019-08-25nls: Update 'de' translation.Ludovic Courtès 2019-08-25nls: Update 'fr' translation.Ludovic Courtès 2019-07-17Merge branch 'master' into core-updatesLudovic Courtès 2019-07-15lint: Move the linting code to a different module....Christopher Baines 2019-07-15derivations: Deprecate the previous calling convention....Ludovic Courtès 2019-07-12Merge branch 'master' into core-updates...Marius Bakke 2019-07-06Add 'guix deploy'....Jakob L. Kreuze 2019-07-06gnu: Add machine type for deployment specifications....Jakob L. Kreuze 2019-06-17utils: Add 'invoke/quiet'....Ludovic Courtès 2019-06-14gnu: bootstrap: Download the bootstrap bash, mkdir, tar, and xz binaries....Ludovic Courtès 2019-06-13Reinstate "nls: Update 'de' translation of the manual."...Ludovic Courtès 2019-06-10Revert "nls: Update 'de' translation of the manual."...Ricardo Wurmus 2019-06-07nls: Update 'de' translation of the manual.Ludovic Courtès 2019-05-17nls: Update 'es' translation.Ludovic Courtès 2019-05-17nls: Update 'de' translation.Ludovic Courtès 2019-05-15nls: Update 'zh_CN' translation.Ludovic Courtès 2019-05-13nls: Update 'fr' translation.Julien Lepiller 2019-05-13nls: Update es translation.Ludovic Courtès 2019-05-13nls: Update de translation.Ludovic Courtès 2019-05-13doc: Add Russian translation....Ludovic Courtès