From: Tomi Ollila Date: Sat, 23 Mar 2013 12:07:15 +0000 (+0200) Subject: [PATCH 1/1] devel/STYLE: information how to enable standard pre-commit hook X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=996bf0dcf364640bddcaf45fb9f4020fac9fc97d;p=notmuch-archives.git [PATCH 1/1] devel/STYLE: information how to enable standard pre-commit hook --- diff --git a/f8/ac22927e39c8eb42e01f10866de40ba17219a8 b/f8/ac22927e39c8eb42e01f10866de40ba17219a8 new file mode 100644 index 000000000..670b5f78f --- /dev/null +++ b/f8/ac22927e39c8eb42e01f10866de40ba17219a8 @@ -0,0 +1,68 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 4560E431FBF + for ; Sat, 23 Mar 2013 05:07:28 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id ywSBFRNrL9aE for ; + Sat, 23 Mar 2013 05:07:27 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 89A68431FAF + for ; Sat, 23 Mar 2013 05:07:27 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 33FC5100209; Sat, 23 Mar 2013 14:07:17 +0200 (EET) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: [PATCH 1/1] devel/STYLE: information how to enable standard + pre-commit hook +Date: Sat, 23 Mar 2013 14:07:15 +0200 +Message-Id: <1364040435-22357-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 1.8.0 +Cc: tomi.ollila@iki.fi +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 23 Mar 2013 12:07:28 -0000 + +It is easier to enable git standard pre-commit hook, when the +operation to do so is presented. +--- + devel/STYLE | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/devel/STYLE b/devel/STYLE +index 0792ba1..92de42c 100644 +--- a/devel/STYLE ++++ b/devel/STYLE +@@ -45,8 +45,9 @@ function (param_type param, param_type param) + - likewise, there is a space following keywords such as if and while + - every binary operator should have space on either side. + +-* No trailing whitespace. Please enable the standard pre-commit hook +- in git (or an equivalent hook). ++* No trailing whitespace. Please enable the standard pre-commit hook in git ++ (or an equivalent hook). The standard pre-commit hook is enabled by simply ++ renaming file '.git/hooks/pre-commit.sample' to '.git/hooks/pre-commit' . + + * The name in a function prototype should start at the beginning of a line. + +-- +1.8.0 +