get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808151,
    "url": "http://patchwork.ozlabs.org/api/patches/808151/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/alpine.LSU.2.20.1708311217330.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.1708311217330.14191@zhemvz.fhfr.qr>",
    "list_archive_url": null,
    "date": "2017-08-31T10:18:22",
    "name": "Fix PR81968 some more",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a968fa2c78c66ec8a396174f4a8fb2142390869d",
    "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.1708311217330.14191@zhemvz.fhfr.qr/mbox/",
    "series": [
        {
            "id": 783,
            "url": "http://patchwork.ozlabs.org/api/series/783/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=783",
            "date": "2017-08-31T10:18:22",
            "name": "Fix PR81968 some more",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/783/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808151/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808151/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-461202-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-461202-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=\"n95+8D0n\"; 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 3xjdd04GGMz9sNr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 20:18:44 +1000 (AEST)",
            "(qmail 64298 invoked by alias); 31 Aug 2017 10:18:35 -0000",
            "(qmail 64285 invoked by uid 89); 31 Aug 2017 10:18:35 -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\tThu, 31 Aug 2017 10:18:25 +0000",
            "from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254])\tby\n\tmx1.suse.de (Postfix) with ESMTP id 388ABABDD\tfor\n\t<gcc-patches@gcc.gnu.org>; Thu, 31 Aug 2017 10:18:23 +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=ft5e8jeQul24i8rIyMyLsJI+Lgvu7NDTwcod71Mb2NVocIofv12HB\n\taPoBkpSMttN7ykTTwmKe2GcK4zOd55NbnkCKnOxdRst6u2RMvRsNQcuEaC4YL+K0\n\ttOmC0HqORw4yPLIbSCwc/ceve6eNK4vkC3mWubaRFGgjuQxo5Nk5rY=",
        "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=MPWz3Cb/iEXoFIQBF6E15yA+nqA=; b=n95+8D0n/zDARuV+s+Ht\n\tlkSixPjux9tAD8glDyt6PrgwcO5wDaFX0dCh5HB0JN/RNtMHdo+6J9v/A8kCHB3/\n\t1YG9AZ7vhWhuc2pUQ56HpWU6ZQUQGpOKTzw0DeXJTb1SDZGH84dXzzMSwuHFC7Vx\n\t2yERgcHnGx/BvACrxgycixE=",
        "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=",
        "X-HELO": "mx1.suse.de",
        "Date": "Thu, 31 Aug 2017 12:18:22 +0200 (CEST)",
        "From": "Richard Biener <rguenther@suse.de>",
        "To": "gcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] Fix PR81968 some more",
        "Message-ID": "<alpine.LSU.2.20.1708311217330.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": "I am testing the following to silence more of Solaris ld warnings about\nearly debug objects.\n\nLTO bootstrapped on x86_64-unknown-linux-gnu, testing in progress.\n\nRichard.\n\n2017-08-31  Richard Biener  <rguenther@suse.de>\n\n\tPR lto/81968\n\t* simple-object-elf.c (simple_object_elf_copy_lto_debug_section):\n\tKeep names of removed global symbols.",
    "diff": "Index: libiberty/simple-object-elf.c\n===================================================================\n--- libiberty/simple-object-elf.c\t(revision 251553)\n+++ libiberty/simple-object-elf.c\t(working copy)\n@@ -1349,9 +1349,11 @@ simple_object_elf_copy_lto_debug_section\n \n \t\t  if (discard)\n \t\t    {\n-\t\t      /* Make discarded symbols undefined and unnamed.  */\n-\t\t      ELF_SET_FIELD (type_functions, ei_class, Sym,\n-\t\t\t\t     ent, st_name, Elf_Word, 0);\n+\t\t      /* Make discarded symbols undefined and unnamed\n+\t\t         in case it is local.  */\n+\t\t      if (ELF_ST_BIND (*st_info) == STB_LOCAL)\n+\t\t\tELF_SET_FIELD (type_functions, ei_class, Sym,\n+\t\t\t\t       ent, st_name, Elf_Word, 0);\n \t\t      ELF_SET_FIELD (type_functions, ei_class, Sym,\n \t\t\t\t     ent, st_value, Elf_Addr, 0);\n \t\t      ELF_SET_FIELD (type_functions, ei_class, Sym,\n",
    "prefixes": []
}