[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/15: etc: Add "rename" snippet.
From: |
guix-commits |
Subject: |
15/15: etc: Add "rename" snippet. |
Date: |
Tue, 26 Mar 2019 09:18:47 -0400 (EDT) |
ambrevar pushed a commit to branch master
in repository guix.
commit 6994e6743603ab73cc32d32786a55672f4fa46f0
Author: Pierre Neidhardt <address@hidden>
Date: Tue Mar 26 13:44:50 2019 +0100
etc: Add "rename" snippet.
* etc/snippets/text-mode/guix-commit-message-rename-package: New file.
---
.../text-mode/guix-commit-message-rename-package | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/etc/snippets/text-mode/guix-commit-message-rename-package
b/etc/snippets/text-mode/guix-commit-message-rename-package
new file mode 100644
index 0000000..9695ca1
--- /dev/null
+++ b/etc/snippets/text-mode/guix-commit-message-rename-package
@@ -0,0 +1,20 @@
+# -*- mode: snippet -*-
+# name: guix-commit-message-rename-package
+# key: rename
+# 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)))`}: Rename package to
${2:`(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)))`}.
+
+* `(car (magit-staged-files))` ($1): Define in terms of
+'deprecated-package'.
+($2): New variable, formerly known as "$1".
\ No newline at end of file
- branch master updated (ceab612 -> 6994e67), guix-commits, 2019/03/26
- 05/15: gnu: wesnoth: Rename package to the-battle-for-wesnoth., guix-commits, 2019/03/26
- 01/15: gnu: armagetronad: Rename package to armagetron-advanced., guix-commits, 2019/03/26
- 04/15: gnu: abbaye: Rename package to l-abbaye-des-morts., guix-commits, 2019/03/26
- 02/15: gnu: cataclysm-dda: Rename package to cataclysm-dark-days-ahead., guix-commits, 2019/03/26
- 03/15: gnu: gnubg: Rename package to gnubackgammon., guix-commits, 2019/03/26
- 08/15: gnu: kiki: Rename package to kiki-the-nano-bot., guix-commits, 2019/03/26
- 09/15: gnu: fillets-ng: Rename package to fish-fillets-ng., guix-commits, 2019/03/26
- 15/15: etc: Add "rename" snippet.,
guix-commits <=
- 06/15: gnu: wesnoth-server: Rename package to the-battle-for-wesnoth-server., guix-commits, 2019/03/26
- 10/15: gnu: crawl: Rename package to dungeon-crawl-stone-soup., guix-commits, 2019/03/26
- 11/15: gnu: crawl-tiles: Rename package to dungeon-crawl-stone-soup-tiles., guix-commits, 2019/03/26
- 14/15: gnu: edgar: Rename package to the-legend-of-edgar., guix-commits, 2019/03/26
- 12/15: gnu: tome4: Rename package to tales-of-maj-eyal., guix-commits, 2019/03/26
- 07/15: gnu: starfighter: Rename package to project-starfighter., guix-commits, 2019/03/26
- 13/15: gnu: btanks: Rename package to battle-tanks., guix-commits, 2019/03/26