get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806546,
    "url": "http://patchwork.ozlabs.org/api/patches/806546/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/alpine.LSU.2.20.1708281352040.14191@zhemvz.fhfr.qr/",
    "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": "<alpine.LSU.2.20.1708281352040.14191@zhemvz.fhfr.qr>",
    "list_archive_url": null,
    "date": "2017-08-28T11:52:53",
    "name": "Improve on PR81968",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2b07bd41ef2717c0006e43e05aff56c8a41c2be1",
    "submitter": {
        "id": 4338,
        "url": "http://patchwork.ozlabs.org/api/people/4338/?format=api",
        "name": "Richard Biener",
        "email": "rguenther@suse.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/alpine.LSU.2.20.1708281352040.14191@zhemvz.fhfr.qr/mbox/",
    "series": [
        {
            "id": 147,
            "url": "http://patchwork.ozlabs.org/api/series/147/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=147",
            "date": "2017-08-28T11:52:53",
            "name": "Improve on PR81968",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/147/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806546/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806546/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-461009-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461009-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"OAw/7CgG\"; dkim-atps=neutral",
            "sourceware.org; auth=none"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xgqsD5PDFz9s7g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 21:53:04 +1000 (AEST)",
            "(qmail 72197 invoked by alias); 28 Aug 2017 11:52:58 -0000",
            "(qmail 72185 invoked by uid 89); 28 Aug 2017 11:52:57 -0000",
            "from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tMon, 28 Aug 2017 11:52:56 +0000",
            "from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254])\tby\n\tmx1.suse.de (Postfix) with ESMTP id A2483AB1E\tfor\n\t<gcc-patches@gcc.gnu.org>; Mon, 28 Aug 2017 11:52:53 +0000 (UTC)"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:subject:message-id:mime-version:content-type; q=dns; s=\n\tdefault; b=l1odW0XswEn3UAyZg0bs90pBbHDZf7N47fxOUm/FOnqvP3jc/yw41\n\tJhSbOcRD4VUCyx5H3rOwQ4qtt+7yGmQLk1aQZBFOZbtwKKj5stZuBfc3A9sOH8Fi\n\tnvgbdckQ9C3fdY0jO3+WdqcTx7l13GH+aJ511RvjXIyHSiHk0xDQaY=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:subject:message-id:mime-version:content-type; s=\n\tdefault; bh=7+U5In7Fl2GCLzu0AsAJ9yXXfDA=; b=OAw/7CgGERFxsBzOoNXJ\n\tiMZM9Fc+aowYU7cwV7iRWzvh+DU8/0sUtwT12xgs4jBpWfOry9tv5XzyRjUqab8v\n\tNLmuAe/C5TK2F+lC/a1wXee//Gp3gAOE8rPwXhkguOmoOOhuoewpbCMD2mIsqw6R\n\t6D1q/6hlX48PhNMmrt9LkHM=",
        "Mailing-List": "contact gcc-patches-help@gcc.gnu.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "List-Archive": "<http://gcc.gnu.org/ml/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-help@gcc.gnu.org>",
        "Sender": "gcc-patches-owner@gcc.gnu.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2,\n\tGIT_PATCH_3, RP_MATCHES_RCVD,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1205",
        "X-HELO": "mx1.suse.de",
        "Date": "Mon, 28 Aug 2017 13:52:53 +0200 (CEST)",
        "From": "Richard Biener <rguenther@suse.de>",
        "To": "gcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] Improve on PR81968",
        "Message-ID": "<alpine.LSU.2.20.1708281352040.14191@zhemvz.fhfr.qr>",
        "User-Agent": "Alpine 2.20 (LSU 67 2015-01-07)",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=US-ASCII"
    },
    "content": "The following avoids invalid flag combinations on removed sections\nand fixes a word-size bug I noticed when doing so.\n\nLTO bootstrap / testing in progress on x86_64-unknown-linux-gnu.\n\nRichard.\n\n2017-08-28  Richard Biener  <rguenther@suse.de>\n\n\tPR lto/81968\n\t* simple-object-elf.c (simple_object_elf_copy_lto_debug_section):\n\tAdjust field with for sh_type write, set SHF_EXCLUDE only for\n\tremoved sections.",
    "diff": "Index: libiberty/simple-object-elf.c\n===================================================================\n--- libiberty/simple-object-elf.c\t(revision 251377)\n+++ libiberty/simple-object-elf.c\t(working copy)\n@@ -1382,7 +1382,7 @@ simple_object_elf_copy_lto_debug_section\n \t     unused.  That allows the link editor to remove it in a partial\n \t     link.  */\n \t  ELF_SET_FIELD (type_functions, ei_class, Shdr,\n-\t\t\t shdr, sh_type, Elf_Addr, SHT_NULL);\n+\t\t\t shdr, sh_type, Elf_Word, SHT_NULL);\n \t}\n \n       flags = ELF_FETCH_FIELD (type_functions, ei_class, Shdr,\n@@ -1390,7 +1390,7 @@ simple_object_elf_copy_lto_debug_section\n       if (ret == 0)\n \tflags &= ~SHF_EXCLUDE;\n       else if (ret == -1)\n-\tflags |= SHF_EXCLUDE;\n+\tflags = SHF_EXCLUDE;\n       ELF_SET_FIELD (type_functions, ei_class, Shdr,\n \t\t     shdr, sh_flags, Elf_Addr, flags);\n     }\n",
    "prefixes": []
}