guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: etc: snippets: Add guix-commit-message-use-https-home-page.


From: Arun Isaac
Subject: 02/02: etc: snippets: Add guix-commit-message-use-https-home-page.
Date: Fri, 13 Jul 2018 03:32:25 -0400 (EDT)

arunisaac pushed a commit to branch master
in repository guix.

commit 9286c2950494b110e12d58d4ebd693d614120afe
Author: Arun Isaac <address@hidden>
Date:   Thu Jul 5 17:12:43 2018 +0530

    etc: snippets: Add guix-commit-message-use-https-home-page.
    
    * etc/snippets/text-mode/guix-commit-message-use-https-home-page: New file.
    * doc/contributing.texi (The Perfect Setup): Document new snippet.
---
 doc/contributing.texi                                          | 3 ++-
 etc/snippets/text-mode/guix-commit-message-use-https-home-page | 9 +++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/doc/contributing.texi b/doc/contributing.texi
index 8feb519..68d8e7e 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -212,7 +212,8 @@ The commit message snippets depend on 
@url{https://magit.vc/, Magit} to
 display staged files.  When editing a commit message type @code{add}
 followed by @kbd{TAB} to insert a commit message template for adding a
 package; type @code{update} followed by @kbd{TAB} to insert a template
-for updating a package.
+for updating a package; type @code{https} followed by @kbd{TAB} to
+insert a template for changing the home page URI of a package to HTTPS.
 
 The main snippet for @code{scheme-mode} is triggered by typing
 @code{package...} followed by @kbd{TAB}.  This snippet also inserts the
diff --git a/etc/snippets/text-mode/guix-commit-message-use-https-home-page 
b/etc/snippets/text-mode/guix-commit-message-use-https-home-page
new file mode 100644
index 0000000..df20d31
--- /dev/null
+++ b/etc/snippets/text-mode/guix-commit-message-use-https-home-page
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: guix-commit-message-use-https-home-page
+# key: https
+# condition: git-commit-mode
+# --
+gnu: $1: Use HTTPS home page URI.
+
+* `(car (magit-staged-files))` ($1)[home-page]: Use HTTPS URI.
+`(mapconcat (lambda (file) (concat "* " file)) (cdr (magit-staged-files)) 
"\n")`
\ No newline at end of file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]