get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229949,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229949/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260428232741.1953871-1-dmalcolm@redhat.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260428232741.1953871-1-dmalcolm@redhat.com>",
    "date": "2026-04-28T23:27:41",
    "name": "[pushed:,r17-173] libgdiagnostics: doc fixes",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "fcb8eb2a9093b3dbe151bc194327a3032c8b0aa3",
    "submitter": {
        "id": 24465,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/24465/?format=api",
        "name": "David Malcolm",
        "email": "dmalcolm@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260428232741.1953871-1-dmalcolm@redhat.com/mbox/",
    "series": [
        {
            "id": 501958,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501958/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501958",
            "date": "2026-04-28T23:27:41",
            "name": "[pushed:,r17-173] libgdiagnostics: doc fixes",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501958/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229949/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229949/checks/",
    "tags": {},
    "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\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=QO9xma4M;\n\tdkim-atps=neutral",
            "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;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=QO9xma4M",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "sourceware.org; spf=pass smtp.mailfrom=redhat.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.129.124"
        ],
        "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 4g4xWD0cLPz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 09:30:32 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 44F3C4BBC0E4\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 23:30:30 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 135A64BBC0FA\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 23:27:46 +0000 (GMT)",
            "from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-25-LKJKkt8dPLCzlzCHVKbcNQ-1; Tue,\n 28 Apr 2026 19:27:44 -0400",
            "from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id BC65919560B5\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 23:27:43 +0000 (UTC)",
            "from t14s.localdomain.com (unknown [10.22.65.168])\n by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 3EE89195608E; Tue, 28 Apr 2026 23:27:43 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 44F3C4BBC0E4",
            "OpenDKIM Filter v2.11.0 sourceware.org 135A64BBC0FA"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 135A64BBC0FA",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 135A64BBC0FA",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777418866; cv=none;\n b=R6rPwivR81poa1snM4MgF7aXyYJIgrjnTe36YbPK+FmOMAWTVThItSr8GPBDdjk3tiaFg2AkTKNJKDroZJFUCkGMKqYTqGYOI9r5s3ZIqDh5vDU7z/wljS8YMfebQ8Ip8lSTjZvAXZc2ceuU6iUzXO5mnP0s0+RT21R42uDFDao=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777418866; c=relaxed/simple;\n bh=xFJ/dspTv2yBEtecCDQTwPYeHLhREnFrxx8VFGCISiw=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=FJ7TbMawVzfnikTnWU7ecl+n+ICZombaLm1MuQDOFwlPSxXmRE5jFHXizA8r2JJNxMxOtsVzyq29LZuWVRQKLuC1ieAsoMeY+69d/1r2bTkQ7iJkOC5hnLNYVIXIudSSwTBw2F93oRdwnk5corF/QBx2VgVKslsVp3yBZAIlm6o=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1777418865;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=ITauCcT1WZYFIt/VcZr5ekqiTXMHXpRZOK11Bgs7cU8=;\n b=QO9xma4M/StZpdVliAc9rVNYKZCIQMyT2BcwUZpLLxYhKjco3x5wPNHpTBLBCcJvInIzrh\n 0iqWPlfwCfCOuzDAugWZtPOuOYYd5C161sepi0yT46J+Ljmy5DGvCrzfV4szHFEOUlbUG0\n nh8/NVnDrqeF2WVgxB1WXm+vVd6oCgY=",
        "X-MC-Unique": "LKJKkt8dPLCzlzCHVKbcNQ-1",
        "X-Mimecast-MFC-AGG-ID": "LKJKkt8dPLCzlzCHVKbcNQ_1777418863",
        "From": "David Malcolm <dmalcolm@redhat.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "David Malcolm <dmalcolm@redhat.com>",
        "Subject": "[pushed: r17-173] libgdiagnostics: doc fixes",
        "Date": "Tue, 28 Apr 2026 19:27:41 -0400",
        "Message-ID": "<20260428232741.1953871-1-dmalcolm@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.17",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "WnS-MutmLNMM0cJabcGBranNDQUIJjghu1mQUl5pkKI_1777418863",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "content-type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "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>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "Fix a couple of missing API entrypoints:\n- diagnostic_execution_path_add_event_via_msg_buf\n- diagnostic_message_buffer_end_quote\n\nPushed to trunk as r17-173-gd3824f42715c75.\n\ngcc/ChangeLog:\n\t* doc/libgdiagnostics/topics/execution-paths.rst\n\t(diagnostic_execution_path_add_event_via_msg_buf): Fix\n\tindentation.\n\t* doc/libgdiagnostics/topics/message-buffers.rst: Replace\n\tduplicate entry for diagnostic_message_buffer_end_url with entry\n\tfor diagnostic_message_buffer_end_quote.\n---\n gcc/doc/libgdiagnostics/topics/execution-paths.rst | 8 ++++----\n gcc/doc/libgdiagnostics/topics/message-buffers.rst | 6 +++---\n 2 files changed, 7 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/gcc/doc/libgdiagnostics/topics/execution-paths.rst b/gcc/doc/libgdiagnostics/topics/execution-paths.rst\nindex 06c8f7fc71b..84981452516 100644\n--- a/gcc/doc/libgdiagnostics/topics/execution-paths.rst\n+++ b/gcc/doc/libgdiagnostics/topics/execution-paths.rst\n@@ -89,10 +89,10 @@ cross-references between events.  In particular FIXME\n    :type:`va_list` rather than directly taking variadic arguments.\n \n .. function:: diagnostic_event_id diagnostic_execution_path_add_event_via_msg_buf (diagnostic_execution_path *path, \\\n-\t\t\t\t\t\t const diagnostic_physical_location *physical_loc, \\\n-\t\t\t\t\t\t const diagnostic_logical_location *logical_loc, \\\n-\t\t\t\t\t\t unsigned stack_depth,\n-\t\t\t\t\t\t diagnostic_message_buffer *msg_buf)\n+                                                                                   const diagnostic_physical_location *physical_loc, \\\n+                                                                                   const diagnostic_logical_location *logical_loc, \\\n+                                                                                   unsigned stack_depth, \\\n+                                                                                   diagnostic_message_buffer *msg_buf)\n \n    This is equivalent to :func:`diagnostic_execution_path_add_event` but\n    using a message buffer rather than a format string and variadic\ndiff --git a/gcc/doc/libgdiagnostics/topics/message-buffers.rst b/gcc/doc/libgdiagnostics/topics/message-buffers.rst\nindex a94cea87a31..d22f4079866 100644\n--- a/gcc/doc/libgdiagnostics/topics/message-buffers.rst\n+++ b/gcc/doc/libgdiagnostics/topics/message-buffers.rst\n@@ -226,10 +226,10 @@ Quoted text\n \n       #ifdef LIBDIAGNOSTICS_HAVE_diagnostic_message_buffer\n \n-.. function:: void diagnostic_message_buffer_end_url (diagnostic_message_buffer *msg_buf)\n+.. function:: void diagnostic_message_buffer_end_quote (diagnostic_message_buffer *msg_buf)\n \n-   This function ends a run of text within the buffer started with\n-   :func:`diagnostic_message_buffer_begin_url`.\n+   This function ends a run of text started with\n+   :func:`diagnostic_message_buffer_begin_quote`.\n \n    ``msg_buf`` must be non-NULL.\n \n",
    "prefixes": [
        "pushed:",
        "r17-173"
    ]
}