Patch Detail
Show a patch.
GET /api/patches/329/?format=api
{ "id": 329, "url": "https://patchwork.libcamera.org/api/patches/329/?format=api", "web_url": "https://patchwork.libcamera.org/patch/329/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20190122192930.10540-1-kieran.bingham@ideasonboard.com>", "date": "2019-01-22T19:29:30", "name": "[libcamera-devel] utils: hooks: Provide post-commit hook example to checkstyle.py", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "af4083bb097765652c886f5e96b473859aa0ecf0", "submitter": { "id": 4, "url": "https://patchwork.libcamera.org/api/people/4/?format=api", "name": "Kieran Bingham", "email": "kieran.bingham@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/329/mbox/", "series": [ { "id": 116, "url": "https://patchwork.libcamera.org/api/series/116/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=116", "date": "2019-01-22T19:29:30", "name": "[libcamera-devel] utils: hooks: Provide post-commit hook example to checkstyle.py", "version": 1, "mbox": "https://patchwork.libcamera.org/series/116/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/329/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/329/checks/", "tags": {}, "headers": { "Return-Path": "<kieran.bingham@ideasonboard.com>", "Received": [ "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DDCBD60C7D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 22 Jan 2019 20:29:34 +0100 (CET)", "from localhost.localdomain\n\t(cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 53339575;\n\tTue, 22 Jan 2019 20:29:34 +0100 (CET)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1548185374;\n\tbh=SRdwtRaS3vbbGCrBWdz9U4fGqYrympMzFHMOtX6WsNs=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=WZU6O7Jp7j+QHQh3k8ClDwy1Ya7SKFpDkePJ5GlPaP/6j0S1Bm6LM5LqK5lQ0GOE3\n\t9Bzw3Uzmth7nUYZfBp8k9Hkq0yjgAH5r6x2RIFaIDDds75y2IAkS8t8veCiPJ8UhOU\n\tdjPS/tcGN4h7LluQFZbHKQ8U+6zV8VfmbZYXt0Zg=", "From": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "To": "LibCamera Devel <libcamera-devel@lists.libcamera.org>", "Date": "Tue, 22 Jan 2019 19:29:30 +0000", "Message-Id": "<20190122192930.10540-1-kieran.bingham@ideasonboard.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[libcamera-devel] [PATCH] utils: hooks: Provide post-commit hook\n\texample to checkstyle.py", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.23", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "X-List-Received-Date": "Tue, 22 Jan 2019 19:29:35 -0000" }, "content": "Provide an example post-commit hook which a developer can install, ensuring\nthat every commit gets the style checker executed on it.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n utils/hooks/post-commit | 11 +++++++++++\n 1 file changed, 11 insertions(+)\n create mode 100755 utils/hooks/post-commit", "diff": "diff --git a/utils/hooks/post-commit b/utils/hooks/post-commit\nnew file mode 100755\nindex 000000000000..e992428b11ae\n--- /dev/null\n+++ b/utils/hooks/post-commit\n@@ -0,0 +1,11 @@\n+#!/bin/sh\n+\n+# Execute the checkstyle script after committing any code. This allows the\n+# commit to succeed, but ensures that the developer is aware of any potential\n+# issues immediately, and can resolve them and fix rapidly with:\n+# git commit --amend\n+#\n+# To utilise this hook, install this file to:\n+# .git/hooks/post-commit\n+\n+./utils/checkstyle.py\n", "prefixes": [ "libcamera-devel" ] }