get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 202067,
    "url": "http://patchwork.ozlabs.org/api/patches/202067/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1353979403-14295-1-git-send-email-dianders@chromium.org/",
    "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": "<1353979403-14295-1-git-send-email-dianders@chromium.org>",
    "list_archive_url": null,
    "date": "2012-11-27T01:23:23",
    "name": "[U-Boot] patman: Look for checkpatch in the scripts directory",
    "commit_ref": "d96ef37df78eac5c636866d8f226991a5d96e6bb",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "ef14f81b15fb080f31bd98c608f411573db99bd1",
    "submitter": {
        "id": 9763,
        "url": "http://patchwork.ozlabs.org/api/people/9763/?format=api",
        "name": "Douglas Anderson",
        "email": "dianders@chromium.org"
    },
    "delegate": {
        "id": 3184,
        "url": "http://patchwork.ozlabs.org/api/users/3184/?format=api",
        "username": "sjg",
        "first_name": "Simon",
        "last_name": "Glass",
        "email": "sjg@chromium.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1353979403-14295-1-git-send-email-dianders@chromium.org/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/202067/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/202067/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 0A5B62C0085\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 27 Nov 2012 12:47:16 +1100 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id B8D904A0C3;\n\tTue, 27 Nov 2012 02:47:13 +0100 (CET)",
            "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 8s9OcsL0twVu; Tue, 27 Nov 2012 02:47:13 +0100 (CET)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id B4CC24A0B9;\n\tTue, 27 Nov 2012 02:47:11 +0100 (CET)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 73A194A0B9\n\tfor <u-boot@lists.denx.de>; Tue, 27 Nov 2012 02:47:09 +0100 (CET)",
            "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 musAFvkRkMFz for <u-boot@lists.denx.de>;\n\tTue, 27 Nov 2012 02:47:08 +0100 (CET)",
            "from mail-ea0-f202.google.com (mail-ea0-f202.google.com\n\t[209.85.215.202])\n\tby theia.denx.de (Postfix) with ESMTPS id 0465A4A0B6\n\tfor <u-boot@lists.denx.de>; Tue, 27 Nov 2012 02:47:05 +0100 (CET)",
            "by mail-ea0-f202.google.com with SMTP id j12so487946eaa.3\n\tfor <u-boot@lists.denx.de>; Mon, 26 Nov 2012 17:47:04 -0800 (PST)",
            "by 10.14.2.199 with SMTP id 47mr16431611eef.5.1353979405247;\n\tMon, 26 Nov 2012 17:23:25 -0800 (PST)",
            "from hpza10.eem.corp.google.com ([74.125.121.33])\n\tby gmr-mx.google.com with ESMTPS id\n\tz47si4135618eel.0.2012.11.26.17.23.25\n\t(version=TLSv1/SSLv3 cipher=AES128-SHA);\n\tMon, 26 Nov 2012 17:23:25 -0800 (PST)",
            "from tictac.mtv.corp.google.com (tictac.mtv.corp.google.com\n\t[172.22.73.80])\n\tby hpza10.eem.corp.google.com (Postfix) with ESMTP id DBDA820004E;\n\tMon, 26 Nov 2012 17:23:24 -0800 (PST)",
            "by tictac.mtv.corp.google.com (Postfix, from userid 121310)\n\tid 48ACC802D3; Mon, 26 Nov 2012 17:23:24 -0800 (PST)"
        ],
        "X-Virus-Scanned": [
            "Debian amavisd-new at theia.denx.de",
            "Debian amavisd-new at theia.denx.de"
        ],
        "X-Greylist": "delayed 946 seconds by postgrey-1.27 at theia;\n\tTue, 27 Nov 2012 02:47:05 CET",
        "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-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=google.com; s=20120113;\n\th=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state;\n\tbh=BOHtZxu8xARrpG2Ll/ZtwG5CGDEsgvFpfLlmrQV8vxs=;\n\tb=bMYULUP7P32TAeKiAhzVjoZ+vgML99/u3K2ZWQ/YpOMo2a9qzjNcppLzO8xyuTwoXP\n\tiZbVzgh0GgYo8Mluw+UBcAnGStP6c+rnuy7Eig7MZTkHNy56d2cu9is96kRThh4MHmyo\n\tFgkxzORECwF7O102p4q8c68G6hcZoZc8+w5kf6OBcjHyg4VLa44S8QiGfZywgvTQtimi\n\t3rXv47IcSXt6/UfKoH2tS3UrA8EBB1m2+/J8+oI5IIvHsqdccgHzExWnYGV0gD162TK5\n\tmdHBcwnBWB8Cc6/JTvQHu1PB/ePMapVK/30laR3z+xf0Mow2BcHV37BgDRQ+i50Cjn8x\n\tNTHQ==",
        "From": "Doug Anderson <dianders@chromium.org>",
        "To": "Simon Glass <sjg@chromium.org>",
        "Date": "Mon, 26 Nov 2012 17:23:23 -0800",
        "Message-Id": "<1353979403-14295-1-git-send-email-dianders@chromium.org>",
        "X-Mailer": "git-send-email 1.7.7.3",
        "X-Gm-Message-State": "ALoCoQlbbAebuuJtkE5J+V/UMjI7Tng9OFUUVpRNRBBpD+LVO6AUXSE0/POE7d7W2oqQLj9DuioVI1WgqHKCcnzFqVuV5LYhHoCN+UJQe1nfCADOJ1PIfO1ZtSukb5Pu1n4b4zKWfWS4z4NVdjrNJfYWf4FmIprJ2a3gsfZbKOKM2TlvjLoU+Q57VAIIXhU+UK14rhz2S8xT",
        "Cc": "u-boot@lists.denx.de",
        "Subject": "[U-Boot] [PATCH] patman: Look for checkpatch in the scripts\n\tdirectory",
        "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>",
        "MIME-Version": "1.0",
        "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": "The Linux kernel stores checkpatch.pl in the scripts directory.  Add\nthat to the search path to make things more automatic for kernel\ndevelopment.\n\nSigned-off-by: Doug Anderson <dianders@chromium.org>\n\n---\n tools/patman/checkpatch.py |    4 +++-\n 1 files changed, 3 insertions(+), 1 deletions(-)",
    "diff": "diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py\nindex d831087..f72f8ee 100644\n--- a/tools/patman/checkpatch.py\n+++ b/tools/patman/checkpatch.py\n@@ -26,10 +26,12 @@ import re\n import terminal\n \n def FindCheckPatch():\n+    top_level = gitutil.GetTopLevel()\n     try_list = [\n         os.getcwd(),\n         os.path.join(os.getcwd(), '..', '..'),\n-        os.path.join(gitutil.GetTopLevel(), 'tools'),\n+        os.path.join(top_level, 'tools'),\n+        os.path.join(top_level, 'scripts'),\n         '%s/bin' % os.getenv('HOME'),\n         ]\n     # Look in current dir\n",
    "prefixes": [
        "U-Boot"
    ]
}