get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226170,
    "url": "http://patchwork.ozlabs.org/api/patches/2226170/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhub7ggucy.gcc.gcc-TEST.mjw.14.1.1@forge-stage.sourceware.org/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<bmm.hhub7ggucy.gcc.gcc-TEST.mjw.14.1.1@forge-stage.sourceware.org>",
    "list_archive_url": null,
    "date": "2026-04-22T10:24:10",
    "name": "[v1,1/1] libiberty: Fix comment typos",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "26bcee54921a9e8cb11a5d3d6db28da0a71f92ab",
    "submitter": {
        "id": 93217,
        "url": "http://patchwork.ozlabs.org/api/people/93217/?format=api",
        "name": "Mark J. Wielaard via Sourceware Forge",
        "email": "forge-bot+mjw@forge-stage.sourceware.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhub7ggucy.gcc.gcc-TEST.mjw.14.1.1@forge-stage.sourceware.org/mbox/",
    "series": [
        {
            "id": 500962,
            "url": "http://patchwork.ozlabs.org/api/series/500962/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500962",
            "date": "2026-04-22T10:24:10",
            "name": "libiberty: Fix comment typos",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500962/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226170/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226170/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org; dmarc=none (p=none dis=none)\n header.from=forge-stage.sourceware.org",
            "sourceware.org;\n spf=pass smtp.mailfrom=forge-stage.sourceware.org",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=38.145.34.39"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0wSs1dc2z1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 20:29:33 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 6C4D748FE577\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 10:29:30 +0000 (GMT)",
            "from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id 933794BB58B1\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 10:25:02 +0000 (GMT)",
            "from forge-stage.sourceware.org (localhost [IPv6:::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256)\n (No client certificate requested)\n by forge-stage.sourceware.org (Postfix) with ESMTPS id 657AB4057F\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 10:25:02 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 6C4D748FE577",
            "OpenDKIM Filter v2.11.0 sourceware.org 933794BB58B1"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 933794BB58B1",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 933794BB58B1",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776853502; cv=none;\n b=DnNKqglbAh4Zl1NPjacbj7dw/dFKMMhA/a4U4Uq3fJwQ+dx256BWuycTyebnwvSgnyLUzdiBSFoWDyPBibKhpuTAPPiS+G54mpAcJhRa96byNqz+I0A8lBlMaHnMiCzzsV7sxpGSbbKlZClqFDqjV9zf95nTim+zAzLdKH9BrvI=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776853502; c=relaxed/simple;\n bh=t0xZqo+XQ12D3wLJfvEXzrA+MmJgCR0TC8/nY9uq29o=;\n h=From:Date:Subject:To:Message-ID;\n b=xiXflETjLzt6CvdIv7lM+RkBdk5stZ6iy16D8fr3/qto4WMPVRoTrpD7TFeMJyH2GnEzEVQwnLw6cgyqInzpQ47mGvjujHc3n9Xa70vMYk2KG1m/Ubk6xSo//p/e0U6T6eWF7yzuC2egfjsXFJS6cUbZwTblGX8w76eSeJLqfXE=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "From": "\"\\\"Mark J. Wielaard via Sourceware Forge\\\"\"\n <forge-bot+mjw@forge-stage.sourceware.org>",
        "Date": "Wed, 22 Apr 2026 10:24:10 +0000",
        "Subject": "[PATCH v1 1/1] libiberty: Fix comment typos",
        "To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>",
        "Message-ID": "\n <bmm.hhub7ggucy.gcc.gcc-TEST.mjw.14.1.1@forge-stage.sourceware.org>",
        "X-Mailer": "batrachomyomachia",
        "X-Requested-Reviewer": "redi",
        "X-Pull-Request-Organization": "gcc",
        "X-Pull-Request-Repository": "gcc-TEST",
        "X-Pull-Request": "https://forge.sourceware.org/gcc/gcc-TEST/pulls/14",
        "References": "\n <bmm.hhub7ggucy.gcc.gcc-TEST.mjw.14.1.0@forge-stage.sourceware.org>",
        "In-Reply-To": "\n <bmm.hhub7ggucy.gcc.gcc-TEST.mjw.14.1.0@forge-stage.sourceware.org>",
        "X-Patch-URL": "\n https://forge.sourceware.org/mjw/gcc/commit/788f15204fbbd7080554f327e7dfbcade56dbec1",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Reply-To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>,\n mark@sourceware.org",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "From: Mark Wielaard <mark@klomp.org>\n\nThese comment typos were found in the valgrind fork of libiberty\ndemangle code.\n\nlibiberty/ChangeLog:\n\n\t* cplus-dem.c: Change preceeded to preceded.\n\ninclude/ChangeLog:\n\n\t* safe-ctype.h: Change accidently to accidentally.\n---\n include/safe-ctype.h  | 2 +-\n libiberty/cplus-dem.c | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/include/safe-ctype.h b/include/safe-ctype.h\nindex 93785da3f24d..eec3d940cf60 100644\n--- a/include/safe-ctype.h\n+++ b/include/safe-ctype.h\n@@ -112,7 +112,7 @@ extern const unsigned char  _sch_tolower[256];\n #define TOUPPER(c) _sch_toupper[(c) & 0xff]\n #define TOLOWER(c) _sch_tolower[(c) & 0xff]\n \n-/* Prevent the users of safe-ctype.h from accidently using the routines\n+/* Prevent the users of safe-ctype.h from accidentally using the routines\n    from ctype.h.  Initially, the approach was to produce an error when\n    detecting that ctype.h has been included.  But this was causing\n    trouble as ctype.h might get indirectly included as a result of\ndiff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c\nindex ee9e84f5d6b1..e67ae9300490 100644\n--- a/libiberty/cplus-dem.c\n+++ b/libiberty/cplus-dem.c\n@@ -215,7 +215,7 @@ ada_demangle (const char *mangled, int option ATTRIBUTE_UNUSED)\n     goto unknown;\n \n   /* Most of the demangling will trivially remove chars.  Operator names\n-     may add one char but because they are always preceeded by '__' which is\n+     may add one char but because they are always preceded by '__' which is\n      replaced by '.', they eventually never expand the size.\n      A few special names such as '___elabs' add a few chars (at most 7), but\n      they occur only once.  */\n",
    "prefixes": [
        "v1",
        "1/1"
    ]
}