GNU bug report logs -
#57487
[PATCH] guix: Add tempel snippet move.
Previous Next
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Tue, 30 Aug 2022 14:58:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 26 Sep 2022 21:54:19 +0200
with message-id <87pmfhkj2s.fsf <at> gnu.org>
and subject line Re: bug#57487: [PATCH] guix: Add tempel snippet move.
has caused the debbugs.gnu.org bug report #57487,
regarding [PATCH] guix: Add tempel snippet move.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
57487: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57487
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
---
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.")
--
2.37.2
--
Best regards,
Nicolas Graves
[Message part 3 (message/rfc822, inline)]
Hi,
Nicolas Graves <ngraves <at> ngraves.fr> skribis:
> ---
> etc/snippets/tempel/text-mode | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
Applied with a commit log, thanks!
Ludo’.
This bug report was last modified 2 years and 261 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.