[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/18: etc: Add tempel snippet move.
From: |
guix-commits |
Subject: |
02/18: etc: Add tempel snippet move. |
Date: |
Mon, 26 Sep 2022 17:32:09 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit b6274a20e8e99fa6287264289da42ed364fc976c
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Tue Aug 30 16:57:32 2022 +0200
etc: Add tempel snippet move.
* etc/snippets/tempel/text-mode (move\): New entry.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
etc/snippets/tempel/text-mode | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/etc/snippets/tempel/text-mode b/etc/snippets/tempel/text-mode
index a1400aac69..8096d92e47 100644
--- a/etc/snippets/tempel/text-mode
+++ b/etc/snippets/tempel/text-mode
@@ -99,3 +99,20 @@ text-mode :when (and (fboundp 'git-commit-mode)
(git-commit-mode))
": Use HTTPS home page." n n
"* " (car (magit-staged-files)) " (" (s var) ")[home-page]: Use HTTPS." n
(mapconcat (lambda (file) (concat "* " file)) (cdr (magit-staged-files))) n)
+
+(move\
+ "gnu: "
+ (p (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)))
+ var)
+ ": Move to "
+ (concat "("
+ (string-replace "\.scm" ""
+ (string-replace "/" " " (car (magit-staged-files))))
+ ").") n
+ n "* " (car (magit-staged-files)) " (" (s var) "): Move from here…"
+ n "* " (cadr (magit-staged-files)) " (" (s var) "): …to here.")
- branch master updated (28a50eeac7 -> f15a141cf3), guix-commits, 2022/09/26
- 02/18: etc: Add tempel snippet move.,
guix-commits <=
- 01/18: machine: ssh: Parameterize '%current-system' early on., guix-commits, 2022/09/26
- 06/18: download: Switch savannah mirrors to HTTPS URLs., guix-commits, 2022/09/26
- 09/18: gnu-maintenance: Simplify latest-kernel.org-release., guix-commits, 2022/09/26
- 13/18: gnu: Add texlive-babel-polish., guix-commits, 2022/09/26
- 14/18: gnu: gnome-boxes: Patch 'qemu-img' file name., guix-commits, 2022/09/26
- 12/18: gnu: Add ec., guix-commits, 2022/09/26
- 05/18: gnu-maintenance: Produce mirror:// URIs in latest-html-release., guix-commits, 2022/09/26
- 10/18: gnu-maintenance: Remove unused procedures., guix-commits, 2022/09/26
- 11/18: gnu-maintenance: Test latest-html-release., guix-commits, 2022/09/26
- 15/18: debug-link: Clarify what CRC is., guix-commits, 2022/09/26