Show a patch.

GET /api/1.1/patches/70/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 70,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/70/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/70/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/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": "<20181221081311.3291-5-kieran.bingham@ideasonboard.com>",
    "date": "2018-12-21T08:13:10",
    "name": "[libcamera-devel,4/5] utils: checkstyle: add keep-one-line-blocks",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c4ff5a4b1bd9e9a15623d16d220a6476060ccaa8",
    "submitter": {
        "id": 4,
        "url": "https://patchwork.libcamera.org/api/1.1/people/4/?format=api",
        "name": "Kieran Bingham",
        "email": "kieran.bingham@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/70/mbox/",
    "series": [
        {
            "id": 35,
            "url": "https://patchwork.libcamera.org/api/1.1/series/35/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=35",
            "date": "2018-12-21T08:13:06",
            "name": "test: Define libtest",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/35/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/70/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/70/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 77B1A60B0C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 21 Dec 2018 09:13:21 +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 0DC995A1;\n\tFri, 21 Dec 2018 09:13:21 +0100 (CET)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1545380001;\n\tbh=pC0KEpu7Jy+EEnJcaL+Ctuxe97bT/luA0nxkcZpVL3s=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=nhKH/blv4wHwNKOsyIH2yU53Uuq1vxlqC8QAV6yUwtByMsZaV2MtinRpxyt/ACiMU\n\t/n4QWvnrm0qva4kfHVmi4s0z5M3BC4xj/SUc6DR7yGQSLZbUZAfgavUYeGX8F8/wDP\n\tczNK73ReiOWXRb6rDIQpa0BjU5jcB1FGnplb7hCA=",
        "From": "Kieran Bingham <kieran.bingham@ideasonboard.com>",
        "To": "LibCamera Devel <libcamera-devel@lists.libcamera.org>",
        "Date": "Fri, 21 Dec 2018 08:13:10 +0000",
        "Message-Id": "<20181221081311.3291-5-kieran.bingham@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20181221081311.3291-1-kieran.bingham@ideasonboard.com>",
        "References": "<20181221081311.3291-1-kieran.bingham@ideasonboard.com>",
        "Subject": "[libcamera-devel] [PATCH 4/5] utils: checkstyle: add\n\tkeep-one-line-blocks",
        "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": "Fri, 21 Dec 2018 08:13:21 -0000"
    },
    "content": "Enable --keep-one-line-blocks to prevent astyle from wanting to move\nsingle inlined blocks to cover 4 lines such as:\n\n-       virtual int init() { return 0; }\n+       virtual int init()\n+       {\n+               return 0;\n+       }\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n utils/checkstyle.py | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/utils/checkstyle.py b/utils/checkstyle.py\nindex 32974815048a..a40d7dec879f 100755\n--- a/utils/checkstyle.py\n+++ b/utils/checkstyle.py\n@@ -29,6 +29,7 @@ astyle_options = (\n     '--pad-oper',\n     '--align-pointer=name',\n     '--align-reference=name',\n+    '--keep-one-line-blocks',\n     '--max-code-length=120'\n )\n \n",
    "prefixes": [
        "libcamera-devel",
        "4/5"
    ]
}