get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2231720,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2231720/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260501101505.3485916-11-peter.maydell@linaro.org/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260501101505.3485916-11-peter.maydell@linaro.org>",
    "date": "2026-05-01T10:14:47",
    "name": "[PULL,10/28] docs/devel/decodetree: Fix formatting in \"field examples\" table",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "8dd387007befb60ac90a895a48b39b9ae3796f0c",
    "submitter": {
        "id": 5111,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/5111/?format=api",
        "name": "Peter Maydell",
        "email": "peter.maydell@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260501101505.3485916-11-peter.maydell@linaro.org/mbox/",
    "series": [
        {
            "id": 502437,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502437/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502437",
            "date": "2026-05-01T10:14:41",
            "name": "[PULL,01/28] hw/arm/fsl-imx8mp: Do not create redundant unimplemented devices",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502437/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2231720/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2231720/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=jVwRWowC;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g6Rmn1gbLz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 20:17:29 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wIkuO-00045r-0d; Fri, 01 May 2026 06:15:44 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wIku5-0003yl-Lm\n for qemu-devel@nongnu.org; Fri, 01 May 2026 06:15:26 -0400",
            "from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wIku3-0008Rx-Rw\n for qemu-devel@nongnu.org; Fri, 01 May 2026 06:15:25 -0400",
            "by mail-wm1-x32a.google.com with SMTP id\n 5b1f17b1804b1-4852a9c6309so14802785e9.0\n for <qemu-devel@nongnu.org>; Fri, 01 May 2026 03:15:23 -0700 (PDT)",
            "from lanath.. (wildly.archaic.org.uk. [81.2.115.145])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a8fede418sm12863335e9.6.2026.05.01.03.15.18\n for <qemu-devel@nongnu.org>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 01 May 2026 03:15:19 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1777630522; x=1778235322; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=eMf0Nfv81bsOU7sGD8NbZmFV5EZggvO8uux0sh3Ikqk=;\n b=jVwRWowCq5OYpMDnD/P2WQzAJA85nSu6v9wuk6XhDkISa7tcQZbQayR1Befa7XzR8y\n 3XsGMdJN4kjQB1pOrjTyeyKPxLKOle0IuwhGJaxo8uGfCRGVqsfn++EvkU9VeYCPBheA\n pc3VVi72d1qDiTHSW8x3bUF8BjofMPk7d1RJgGjAmvcWBdxrs1zFst0C3qPkNVvtORMd\n ZWqRr3FIqYajuraq8YHJ/hZM0b0FGXEnwIxELUsNKcPleEsiOoU/uSyW69eTXF1OyNNA\n 3Ck2BFL2ou4EhpVj0cb34cnc7AvZj/i+AR2U7yKaoPQYzyCqrBk4fiMZJ8Nt9wDpBwj9\n 6ddQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777630522; x=1778235322;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=eMf0Nfv81bsOU7sGD8NbZmFV5EZggvO8uux0sh3Ikqk=;\n b=DHgz2KXui//GKjBWYW1mY2850I1Fa1eorPDgq/1a28sNWOgdMjnbHCVS+rZVuSKEMt\n Vhy60a391TpP8QR5NX503RRiEPl/zw92/pmarBfeez0gx0gaiNbAbg/wuLaCPcFqZwdf\n ULzobVyO1Bduy6hRb1bqPK24wS+PWgepvr0x5etOJWfSBneNIovePwd6nrDg1Du+o60X\n 6Ry5gLKLy+NPaBDKelIv+hyM2m6bB0ZQ1Wly6a2jg4SoX+qbohxi+w12ccMWLMoWNURu\n ANRUklNaspoFYuY4tNvCq8s/kkXli3T5PGGVpzvZBZxyG//DO09DuTNxvg+q3Jfkyum+\n 13IA==",
        "X-Gm-Message-State": "AOJu0Yx8wTTLBrG59HmVYaiV8AUh2k2nYFCDc4njZOSOeGcKBd20V9Zj\n qN8yfS+Kmfe5WFgV6K01YqtKoE6jVWQZH0OCwDN6293yoqiC8kAZbaXnVYzH/JVkRJSgYUMKflM\n ata8Z",
        "X-Gm-Gg": "AeBDietWXk54JiIkm4cEuIiSxrmTLCtlBPstir0kyAU/Ok257F04jE64Qi0FVCSEf67\n EF7K+7tc5dSM7SvoA9rPGFmwXNtmeSfVR35j+XI2SU8YHG54u6jXLNkPL26QyoR1N7K94CIEEVF\n VnjoFKpTy+8T01DZqIxGKtgVQCfYMkkpnIp88px8+E7bW+3E4ud0/+5AMLjYUYh9F5qPRKvNnZC\n SDkBLsPtZc5pHTlrDGwmtIF0jWhZpdAur55Tz4sWYaIEnHIlt+BIosERblqmLHAxys9xL1AyoOg\n EK2SFfr549bI3v1Ody5qPCxB9287xKqo7LiIhJj0cV9EueekfBngsZ/AI7Jok035H8PtrnqgFwI\n sYVJY8BLMbDhBt0Y9GM20hsgXRFTF+9HSjbk8F0N83rQtKL7fddSjcC6yZLlletXKYcN2+ljPjb\n P0rdCOh3kP1kr6XcYeaDbv6NrP8dzZsgpNS0YyHRk37e+7/iplxstix58t9iinEfeG29Hkw+X1J\n iHpyH3spfi6ArymCRcx3EYccx3g6K2189GlmpAeEbcsiB0FU6P3",
        "X-Received": "by 2002:a05:600c:3d97:b0:48a:53ea:1408 with SMTP id\n 5b1f17b1804b1-48a83d78a6cmr93951595e9.8.1777630521964;\n Fri, 01 May 2026 03:15:21 -0700 (PDT)",
        "From": "Peter Maydell <peter.maydell@linaro.org>",
        "To": "qemu-devel@nongnu.org",
        "Subject": "[PULL 10/28] docs/devel/decodetree: Fix formatting in \"field\n examples\" table",
        "Date": "Fri,  1 May 2026 11:14:47 +0100",
        "Message-ID": "<20260501101505.3485916-11-peter.maydell@linaro.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260501101505.3485916-1-peter.maydell@linaro.org>",
        "References": "<20260501101505.3485916-1-peter.maydell@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2a00:1450:4864:20::32a;\n envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32a.google.com",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "The rST syntax for a table uses ASCII art to draw the cell\nboundaries; then inside each cell the text is treated as a body\nelement, so it is rendered the same way as text at the top level of a\ndocument.\n\nThe \"field examples\" table was assuming a \"literal document\" format\nfor its cell bodies; this meant that the single line cells were being\nrendered in plain text, not a fixed width font, and the multi line\ncells were rendered as definition-lists because of their \"second and\nsubsequent lines are indented\" layout.\n\nFix this by consistently using inline-code markup for the left column\nand literal blocks for the right column.  (We want to be consistent\nwithin each column because a literal block renders differently to\ninline-code, with a green background.)\n\nReviewed-by: Alex Bennée <alex.bennee@linaro.org>\nSigned-off-by: Peter Maydell <peter.maydell@linaro.org>\n---\n docs/devel/decodetree.rst | 44 ++++++++++++++++++++++++---------------\n 1 file changed, 27 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/docs/devel/decodetree.rst b/docs/devel/decodetree.rst\nindex 98ad33a487..33cd6fe583 100644\n--- a/docs/devel/decodetree.rst\n+++ b/docs/devel/decodetree.rst\n@@ -64,23 +64,33 @@ A field with no ``fields`` and no ``!function`` is in error.\n \n Field examples:\n \n-+---------------------------+---------------------------------------------+\n-| Input                     | Generated code                              |\n-+===========================+=============================================+\n-| %disp   0:s16             | sextract(i, 0, 16)                          |\n-+---------------------------+---------------------------------------------+\n-| %imm9   16:6 10:3         | extract(i, 16, 6) << 3 | extract(i, 10, 3)  |\n-+---------------------------+---------------------------------------------+\n-| %disp12 0:s1 1:1 2:10     | sextract(i, 0, 1) << 11 |                   |\n-|                           |    extract(i, 1, 1) << 10 |                 |\n-|                           |    extract(i, 2, 10)                        |\n-+---------------------------+---------------------------------------------+\n-| %shimm8 5:s8 13:1         | expand_shimm8(sextract(i, 5, 8) << 1 |      |\n-|   !function=expand_shimm8 |               extract(i, 13, 1))            |\n-+---------------------------+---------------------------------------------+\n-| %sz_imm 10:2 sz:3         | expand_sz_imm(extract(i, 10, 2) << 3 |      |\n-|   !function=expand_sz_imm |               extract(a->sz, 0, 3))         |\n-+---------------------------+---------------------------------------------+\n++-----------------------------+----------------------------------------------+\n+| Input                       | Generated code                               |\n++=============================+==============================================+\n+| ``%disp   0:s16``           | ::                                           |\n+|                             |                                              |\n+|                             |   sextract(i, 0, 16)                         |\n++-----------------------------+----------------------------------------------+\n+| ``%imm9   16:6 10:3``       | ::                                           |\n+|                             |                                              |\n+|                             |   extract(i, 16, 6) << 3 | extract(i, 10, 3) |\n++-----------------------------+----------------------------------------------+\n+| ``%disp12 0:s1 1:1 2:10``   | ::                                           |\n+|                             |                                              |\n+|                             |   sextract(i, 0, 1) << 11 |                  |\n+|                             |       extract(i, 1, 1) << 10 |               |\n+|                             |       extract(i, 2, 10)                      |\n++-----------------------------+----------------------------------------------+\n+| ``%shimm8 5:s8 13:1         | ::                                           |\n+| !function=expand_shimm8``   |                                              |\n+|                             |   expand_shimm8(sextract(i, 5, 8) << 1 |     |\n+|                             |                 extract(i, 13, 1))           |\n++-----------------------------+----------------------------------------------+\n+| ``%sz_imm 10:2 sz:3         | ::                                           |\n+| !function=expand_sz_imm``   |                                              |\n+|                             |   expand_sz_imm(extract(i, 10, 2) << 3 |     |\n+|                             |                 extract(a->sz, 0, 3))        |\n++-----------------------------+----------------------------------------------+\n \n Argument Sets\n =============\n",
    "prefixes": [
        "PULL",
        "10/28"
    ]
}