aboutsummaryrefslogtreecommitdiff
path: root/etc/snippets/text-mode/guix-commit-message-update-package
blob: b08df74a0b83a85baa06f1185362d90901dac61f (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")
           (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")`
ge-Id: I17536f3de68bd124c07f1e1908607d248db75492 Sharlatan Hellseher 2024-07-03gnu: global: Update to 6.6.13....* gnu/packages/code.scm (global): Update to 6.6.13. Change-Id: I4a00f0853b9ad9dcd216f4a7e33a23df3c1caa13 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Andy Tai 2024-06-24gnu: astyle: Update to 3.5....* gnu/packages/code.scm (astyle): Update to 3.5. [source]: Change source archive file name to match the upstream. [arguments]: Remove "modules". Add "patch-makefile" phase to set the C++ compiler to version c++17 as it is required for the build. Simplify "install-more" file. Change-Id: I8777710d723d22320c288c331645f8d61d5e640e Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Artyom V. Poptsov 2024-04-07gnu: Remove withershins....This was only ever needed for powertabeditor. * gnu/packages/code.scm (withershins): Remove variable. Change-Id: I1c286073d1415cd2261ad58017855fedb7701b05 Ricardo Wurmus 2024-04-07gnu: automatic-component-toolkit: Swap to go-build-system....* gnu/packages/code.scm (automatic-component-toolkit): [build-system]: Swap to go-build-system to make the package more maintainable and build predictable. [arguments] <#:phases>: Swap to default 'build and 'install phases, revert 'configure phase. Add 'pretend-cmd-act phase to satisfy go-build-system. [native-inputs]: Remove go. Change-Id: Iba7bd4c87bdbbb91381f81a77c7811cb9f1f4943 Sharlatan Hellseher 2024-04-06gnu: packages: code: Add golang module back....Fix CI as seen in <https://ci.guix.gnu.org/eval/1229755>. * gnu/packages/code.scm: Add golang module back, required for automatic-component-toolkit. Change-Id: I5e099f769e7edf5735e2119e65fd37619fe4760e Sharlatan Hellseher 2024-04-06gnu: Add scc...* gnu/packages/code.scm (scc): New variable. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Change-Id: I90653554a6f0640718892622f76c0c1be138687c Fries