From patchwork Wed Dec 11 18:46:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Worth X-Patchwork-Id: 300285 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 1B0A72C019B for ; Thu, 12 Dec 2013 05:55:31 +1100 (EST) X-Greylist: delayed 534 seconds by postgrey-1.34 at bilbo; Thu, 12 Dec 2013 05:55:28 EST Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E1F6C2C00B8 for ; Thu, 12 Dec 2013 05:55:28 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 28B596DE16AD for ; Wed, 11 Dec 2013 10:46:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at arlo.cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id um_4938IYILy; Wed, 11 Dec 2013 10:46:31 -0800 (PST) Received: from yoom.home.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 34B4D6DE16AE; Wed, 11 Dec 2013 10:46:29 -0800 (PST) From: Carl Worth To: patchwork@lists.ozlabs.org Subject: [PATCH 3/3] docs: Add a pointer to the git post-receive hook Date: Wed, 11 Dec 2013 10:46:28 -0800 Message-Id: <1386787588-2074-3-git-send-email-cworth@cworth.org> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1386787588-2074-2-git-send-email-cworth@cworth.org> References: <1386787588-2074-1-git-send-email-cworth@cworth.org> <1386787588-2074-2-git-send-email-cworth@cworth.org> X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" I had to stumble upon this feature before I realized it was here inside the tools directory all along. This documentation should make it easier for the next person coming along looking for a patchwork git hook. --- docs/INSTALL | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/INSTALL b/docs/INSTALL index 91c6081..06c21d4 100644 --- a/docs/INSTALL +++ b/docs/INSTALL @@ -217,6 +217,23 @@ fastcgi: sudo -u nobody /srv/patchwork/apps/patchwork/bin/parsemail.sh < mail +7. Optional: Configure your VCS to automatically update patches + + The tools directory of the patchwork distribution contains a file + named post-receive.hook which is an example git hook that can be + used to automatically update patches to the Accepted state when + corresponding comits are pushed via git. + + To install this hook, simply copy it to the .git/hooks directoy on + your server, name it post-receive, and make it executable. + + This sample hook has support to update patches to different states + depending on which branch is being pushed to. See the STATE_MAP + setting in that file. + + If you are using a system other than git, you can likely write a + similar hook using pwclient to update patch state. If you do write + one, please contribute it. Some errors: