get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809307,
    "url": "http://patchwork.ozlabs.org/api/patches/809307/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170903150031.18179-4-marek.behun@nic.cz/",
    "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": "<20170903150031.18179-4-marek.behun@nic.cz>",
    "list_archive_url": null,
    "date": "2017-09-03T15:00:25",
    "name": "[U-Boot,3/9] include: Add a variadic macro to call a callback for all arguments",
    "commit_ref": "59981e6a3d6074bf5413c1875a95325a4b8c01ca",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "731a66fa6c84d7e7a2b17660a395d0b97a6e178b",
    "submitter": {
        "id": 71605,
        "url": "http://patchwork.ozlabs.org/api/people/71605/?format=api",
        "name": "Marek Behún",
        "email": "marek.behun@nic.cz"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170903150031.18179-4-marek.behun@nic.cz/mbox/",
    "series": [
        {
            "id": 1246,
            "url": "http://patchwork.ozlabs.org/api/series/1246/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1246",
            "date": "2017-09-03T15:00:25",
            "name": "Add single-device read-only BTRFS support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1246/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809307/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809307/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",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tsecure) header.d=nic.cz header.i=@nic.cz header.b=\"FDa/BKDS\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlbmD5Xdgz9sP3\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon,  4 Sep 2017 01:01:48 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 5C47DC21EE3; Sun,  3 Sep 2017 15:01:38 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 7E6F5C21D65;\n\tSun,  3 Sep 2017 15:01:35 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid C6B19C21DBF; Sun,  3 Sep 2017 15:01:33 +0000 (UTC)",
            "from mail.nic.cz (mail.nic.cz [217.31.204.67])\n\tby lists.denx.de (Postfix) with ESMTPS id 69C57C21D79\n\tfor <u-boot@lists.denx.de>; Sun,  3 Sep 2017 15:01:33 +0000 (UTC)",
            "from dellmb.labs.office.nic.cz (unknown\n\t[IPv6:2001:1488:fffe:6:8982:ed8c:62b1:c0c8])\n\tby mail.nic.cz (Postfix) with ESMTP id 1AA636229F;\n\tSun,  3 Sep 2017 17:01:33 +0200 (CEST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default;\n\tt=1504450893; bh=6mhOz+V9Su2Js+4KwqkPlVrdJdqRWDQwwGnxEuFsvRk=;\n\th=From:To:Date;\n\tb=FDa/BKDSboPUBb64oCtYmFONz1MK6e2JeKSHvZuUyDgNH7OoCdNItcznwJp4srlNR\n\tgQnszhzgtd2ESv4zWqvBafONW2GPdSHM5/ifnWJkfPrX6yvsbrnM2fflqBtaagL0i0\n\tkeMhaaHBXD5B8pHAve1KJmVttXsK3l55dHoIJ37g=",
        "From": "=?utf-8?q?Marek_Beh=C3=BAn?= <marek.behun@nic.cz>",
        "To": "u-boot@lists.denx.de",
        "Date": "Sun,  3 Sep 2017 17:00:25 +0200",
        "Message-Id": "<20170903150031.18179-4-marek.behun@nic.cz>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170903150031.18179-1-marek.behun@nic.cz>",
        "References": "<20170903150031.18179-1-marek.behun@nic.cz>",
        "X-Virus-Scanned": "clamav-milter 0.99.2 at mail",
        "X-Virus-Status": "Clean",
        "Cc": "Tomas Hlavacek <tomas.hlavacek@nic.cz>, Stefan Roese <sr@denx.de>,\n\t=?utf-8?q?Andreas_F=C3=A4rber?= <afaerber@suse.de>",
        "Subject": "[U-Boot] [PATCH 3/9] include: Add a variadic macro to call a\n\tcallback for all arguments",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/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": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "Add a header variadic-macro.h which defines the CALL_MACRO_FOR_EACH marco.\n\nThis macro can be used as follows:\n  #define TEST(x)\n  CALL_MACRO_FOR_EACH(TEST, a, b, c, d)\n\nThis will expand to\n  TEST(a) TEST(b) TEST(c) TEST(d)\n\nThe nice thing is that CALL_MACRO_FOR_EACH is a variadic macro, thus the\nnumber of arguments can vary (although it has an upper limit - in this\nimplementation 32 arguments).\n\nSigned-off-by: Marek Behun <marek.behun@nic.cz>\n\n create mode 100644 include/u-boot/variadic-macro.h",
    "diff": "diff --git a/include/u-boot/variadic-macro.h b/include/u-boot/variadic-macro.h\nnew file mode 100644\nindex 0000000000..922beafcea\n--- /dev/null\n+++ b/include/u-boot/variadic-macro.h\n@@ -0,0 +1,59 @@\n+/*\n+ * Helper for work with variadic macros\n+ *\n+ * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+#ifndef __VARIADIC_MACRO_H__\n+#define __VARIADIC_MACRO_H__\n+\n+#define _VM_GET_NTH_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, \\\n+\t_14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, \\\n+\t_28, _29, _30, _31, _32, N, ...) N\n+\n+#define _VM_HELP_0(_call, ...)\n+#define _VM_HELP_1(_call, x, ...) _call(x)\n+#define _VM_HELP_2(_call, x, ...) _call(x) _VM_HELP_1(_call, __VA_ARGS__)\n+#define _VM_HELP_3(_call, x, ...) _call(x) _VM_HELP_2(_call, __VA_ARGS__)\n+#define _VM_HELP_4(_call, x, ...) _call(x) _VM_HELP_3(_call, __VA_ARGS__)\n+#define _VM_HELP_5(_call, x, ...) _call(x) _VM_HELP_4(_call, __VA_ARGS__)\n+#define _VM_HELP_6(_call, x, ...) _call(x) _VM_HELP_5(_call, __VA_ARGS__)\n+#define _VM_HELP_7(_call, x, ...) _call(x) _VM_HELP_6(_call, __VA_ARGS__)\n+#define _VM_HELP_8(_call, x, ...) _call(x) _VM_HELP_7(_call, __VA_ARGS__)\n+#define _VM_HELP_9(_call, x, ...) _call(x) _VM_HELP_8(_call, __VA_ARGS__)\n+#define _VM_HELP_10(_call, x, ...) _call(x) _VM_HELP_9(_call, __VA_ARGS__)\n+#define _VM_HELP_11(_call, x, ...) _call(x) _VM_HELP_10(_call, __VA_ARGS__)\n+#define _VM_HELP_12(_call, x, ...) _call(x) _VM_HELP_11(_call, __VA_ARGS__)\n+#define _VM_HELP_13(_call, x, ...) _call(x) _VM_HELP_12(_call, __VA_ARGS__)\n+#define _VM_HELP_14(_call, x, ...) _call(x) _VM_HELP_13(_call, __VA_ARGS__)\n+#define _VM_HELP_15(_call, x, ...) _call(x) _VM_HELP_14(_call, __VA_ARGS__)\n+#define _VM_HELP_16(_call, x, ...) _call(x) _VM_HELP_15(_call, __VA_ARGS__)\n+#define _VM_HELP_17(_call, x, ...) _call(x) _VM_HELP_16(_call, __VA_ARGS__)\n+#define _VM_HELP_18(_call, x, ...) _call(x) _VM_HELP_17(_call, __VA_ARGS__)\n+#define _VM_HELP_19(_call, x, ...) _call(x) _VM_HELP_18(_call, __VA_ARGS__)\n+#define _VM_HELP_20(_call, x, ...) _call(x) _VM_HELP_19(_call, __VA_ARGS__)\n+#define _VM_HELP_21(_call, x, ...) _call(x) _VM_HELP_20(_call, __VA_ARGS__)\n+#define _VM_HELP_22(_call, x, ...) _call(x) _VM_HELP_21(_call, __VA_ARGS__)\n+#define _VM_HELP_23(_call, x, ...) _call(x) _VM_HELP_22(_call, __VA_ARGS__)\n+#define _VM_HELP_24(_call, x, ...) _call(x) _VM_HELP_23(_call, __VA_ARGS__)\n+#define _VM_HELP_25(_call, x, ...) _call(x) _VM_HELP_24(_call, __VA_ARGS__)\n+#define _VM_HELP_26(_call, x, ...) _call(x) _VM_HELP_25(_call, __VA_ARGS__)\n+#define _VM_HELP_27(_call, x, ...) _call(x) _VM_HELP_26(_call, __VA_ARGS__)\n+#define _VM_HELP_28(_call, x, ...) _call(x) _VM_HELP_27(_call, __VA_ARGS__)\n+#define _VM_HELP_29(_call, x, ...) _call(x) _VM_HELP_28(_call, __VA_ARGS__)\n+#define _VM_HELP_30(_call, x, ...) _call(x) _VM_HELP_29(_call, __VA_ARGS__)\n+#define _VM_HELP_31(_call, x, ...) _call(x) _VM_HELP_30(_call, __VA_ARGS__)\n+\n+#define CALL_MACRO_FOR_EACH(x, ...)\t\t\t\t\t \\\n+\t_VM_GET_NTH_ARG(\"\", ##__VA_ARGS__, _VM_HELP_31, _VM_HELP_30,\t \\\n+\t_VM_HELP_29, _VM_HELP_28, _VM_HELP_27, _VM_HELP_26, _VM_HELP_25, \\\n+\t_VM_HELP_24, _VM_HELP_23, _VM_HELP_22, _VM_HELP_21, _VM_HELP_20, \\\n+\t_VM_HELP_19, _VM_HELP_18, _VM_HELP_17, _VM_HELP_16, _VM_HELP_15, \\\n+\t_VM_HELP_14, _VM_HELP_13, _VM_HELP_12, _VM_HELP_11, _VM_HELP_10, \\\n+\t_VM_HELP_9, _VM_HELP_8, _VM_HELP_7, _VM_HELP_6, _VM_HELP_5,\t \\\n+\t_VM_HELP_4, _VM_HELP_3, _VM_HELP_2, _VM_HELP_1,\t\t\t \\\n+\t_VM_HELP_0)(x, __VA_ARGS__)\n+\n+#endif /* __VARIADIC_MACRO_H__ */\n",
    "prefixes": [
        "U-Boot",
        "3/9"
    ]
}