From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb3ZK-0003qG-8y for guix-patches@gnu.org; Thu, 05 Jul 2018 08:41:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb3ZH-0002Qh-No for guix-patches@gnu.org; Thu, 05 Jul 2018 08:41:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39423) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb3ZH-0002Pq-JQ for guix-patches@gnu.org; Thu, 05 Jul 2018 08:41:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fb3ZH-0002ng-Ch for guix-patches@gnu.org; Thu, 05 Jul 2018 08:41:03 -0400 Subject: [bug#32059] [PATCH 3/3] etc: snippets: Add guix-commit-message-use-https-home-page. Resent-Message-ID: From: Arun Isaac Date: Thu, 5 Jul 2018 18:09:44 +0530 Message-Id: <20180705123944.25944-3-arunisaac@systemreboot.net> In-Reply-To: <20180705123944.25944-1-arunisaac@systemreboot.net> References: <20180705123944.25944-1-arunisaac@systemreboot.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32059@debbugs.gnu.org * 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(-) create mode 100644 etc/snippets/text-mode/guix-commit-message-use-https-home-page diff --git a/doc/contributing.texi b/doc/contributing.texi index ca44b3b0b..79bd536f5 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -210,7 +210,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 000000000..df20d31a8 --- /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 -- 2.15.1