get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 170649,
    "url": "http://patchwork.ozlabs.org/api/patches/170649/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1342097912-8652-1-git-send-email-hkronsto@frequentis.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1342097912-8652-1-git-send-email-hkronsto@frequentis.com>",
    "list_archive_url": null,
    "date": "2012-07-12T12:58:32",
    "name": "[U-Boot] dts/Makefile: Check for empty $(LDSCRIPT)",
    "commit_ref": "a4ff471970e8f749dc16643ee7e354a3fcfa2ad7",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "70274c001073fa68359b934741096924ba98f7a9",
    "submitter": {
        "id": 5888,
        "url": "http://patchwork.ozlabs.org/api/people/5888/?format=api",
        "name": "Horst Kronstorfer",
        "email": "hkronsto@frequentis.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1342097912-8652-1-git-send-email-hkronsto@frequentis.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/170649/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/170649/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 580962C020B\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 12 Jul 2012 23:09:10 +1000 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 72924280B5;\n\tThu, 12 Jul 2012 15:09:07 +0200 (CEST)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id KeLW9vk0pWsD; Thu, 12 Jul 2012 15:09:07 +0200 (CEST)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 38DD0280C5;\n\tThu, 12 Jul 2012 15:09:05 +0200 (CEST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 24C00280C5\n\tfor <u-boot@lists.denx.de>; Thu, 12 Jul 2012 15:09:03 +0200 (CEST)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id FYzTjttV7BtY for <u-boot@lists.denx.de>;\n\tThu, 12 Jul 2012 15:09:02 +0200 (CEST)",
            "from mail1.frequentis.com (mail1.frequentis.com [212.186.194.131])\n\tby theia.denx.de (Postfix) with ESMTPS id 78060280B5\n\tfor <u-boot@lists.denx.de>; Thu, 12 Jul 2012 15:09:00 +0200 (CEST)",
            "from vie190nt.frequentis.frq ([172.16.1.190])\n\tby mail1.frequentis.com with ESMTP; 12 Jul 2012 14:58:57 +0200",
            "from ssg5ux.ssg.frequentis.frq (10.16.10.13) by\n\tVIE190NT.frequentis.frq (172.16.1.190) with Microsoft SMTP Server\n\t(TLS) id 14.2.309.2; Thu, 12 Jul 2012 14:58:57 +0200",
            "from hkronsto by ssg5ux.ssg.frequentis.frq with local (Exim 4.72)\n\t(envelope-from <hkronsto@ssg.frequentis.frq>)\tid 1SpIyv-0002G8-4a; \n\tThu, 12 Jul 2012 14:58:57 +0200"
        ],
        "X-Virus-Scanned": [
            "Debian amavisd-new at theia.denx.de",
            "Debian amavisd-new at theia.denx.de"
        ],
        "X-Greylist": "delayed 602 seconds by postgrey-1.27 at theia;\n\tThu, 12 Jul 2012 15:09:00 CEST",
        "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)",
        "X-IronPort-AV": "E=Sophos;i=\"4.77,574,1336341600\"; d=\"scan'208\";a=\"12657915\"",
        "From": "Horst Kronstorfer <hkronsto@frequentis.com>",
        "To": "<u-boot@lists.denx.de>",
        "Date": "Thu, 12 Jul 2012 14:58:32 +0200",
        "Message-ID": "<1342097912-8652-1-git-send-email-hkronsto@frequentis.com>",
        "X-Mailer": "git-send-email 1.7.11.1",
        "MIME-Version": "1.0",
        "Subject": "[U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT)",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.11",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<http://lists.denx.de/mailman/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "u-boot-bounces@lists.denx.de",
        "Errors-To": "u-boot-bounces@lists.denx.de"
    },
    "content": "Make sure that $(LDSCRIPT) is not empty before calling process_lds\nwith 'cat $(LDSCRIPT)' else cat will block waiting for input from\nstdin.\n\nSigned-off-by: Horst Kronstorfer <hkronsto@frequentis.com>\n---\n dts/Makefile | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/dts/Makefile b/dts/Makefile\nindex 402dfe1..9a54ca5 100644\n--- a/dts/Makefile\n+++ b/dts/Makefile\n@@ -66,8 +66,9 @@ $(obj)dt.o: $(DT_BIN)\n \t# We look in the LDSCRIPT first.\n \t# Then try the linker which should give us the answer.\n \t# Then check it worked.\n-\toformat=`$(call process_lds,cat $(LDSCRIPT),FORMAT)` ;\\\n-\toarch=`$(call process_lds,cat $(LDSCRIPT),ARCH)` ;\\\n+\t[ -n \"$(LDSCRIPT)\" ] && \\\n+\t\toformat=`$(call process_lds,cat $(LDSCRIPT),FORMAT)` && \\\n+\t\toarch=`$(call process_lds,cat $(LDSCRIPT),ARCH)` ;\\\n \t\\\n \t[ -z $${oformat} ] && \\\n \t\toformat=`$(call process_lds,$(GET_LDS),FORMAT)` ;\\\n",
    "prefixes": [
        "U-Boot"
    ]
}