get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 476307,
    "url": "http://patchwork.ozlabs.org/api/patches/476307/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1432591007-27689-4-git-send-email-thomas.petazzoni@free-electrons.com/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/projects/27/?format=api",
        "name": "Buildroot development",
        "link_name": "buildroot",
        "list_id": "buildroot.buildroot.org",
        "list_email": "buildroot@buildroot.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1432591007-27689-4-git-send-email-thomas.petazzoni@free-electrons.com>",
    "list_archive_url": null,
    "date": "2015-05-25T21:56:46",
    "name": "[v4,2015.08,3/4] Makefile: implement a size-stats target",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "bc4018d82b061b42078d045082f2771858a8be73",
    "submitter": {
        "id": 2230,
        "url": "http://patchwork.ozlabs.org/api/people/2230/?format=api",
        "name": "Thomas Petazzoni",
        "email": "thomas.petazzoni@free-electrons.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/1432591007-27689-4-git-send-email-thomas.petazzoni@free-electrons.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/476307/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/476307/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@busybox.net>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "buildroot@lists.busybox.net"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "buildroot@osuosl.org"
        ],
        "Received": [
            "from whitealder.osuosl.org (whitealder.osuosl.org\n\t[140.211.166.138])\n\tby ozlabs.org (Postfix) with ESMTP id 0F3B51402B4\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 26 May 2015 07:57:07 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 5C47F915DC;\n\tMon, 25 May 2015 21:57:06 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id QZsNmDYXBOHr; Mon, 25 May 2015 21:57:02 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id ECADC915A2;\n\tMon, 25 May 2015 21:56:56 +0000 (UTC)",
            "from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id B81781BFA9E\n\tfor <buildroot@lists.busybox.net>;\n\tMon, 25 May 2015 21:56:53 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id B1B00A2FEF\n\tfor <buildroot@lists.busybox.net>;\n\tMon, 25 May 2015 21:56:53 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id LPtgKVFPaJqx for <buildroot@lists.busybox.net>;\n\tMon, 25 May 2015 21:56:53 +0000 (UTC)",
            "from mail.free-electrons.com (down.free-electrons.com\n\t[37.187.137.238])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id D27D2A2FE6\n\tfor <buildroot@uclibc.org>; Mon, 25 May 2015 21:56:52 +0000 (UTC)",
            "by mail.free-electrons.com (Postfix, from userid 106)\n\tid EDD0B388; Mon, 25 May 2015 23:56:51 +0200 (CEST)",
            "from localhost (AToulouse-657-1-1132-11.w92-156.abo.wanadoo.fr\n\t[92.156.54.11])\n\tby mail.free-electrons.com (Postfix) with ESMTPSA id BAD42279;\n\tMon, 25 May 2015 23:56:51 +0200 (CEST)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "From": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>",
        "To": "buildroot@uclibc.org",
        "Date": "Mon, 25 May 2015 23:56:46 +0200",
        "Message-Id": "<1432591007-27689-4-git-send-email-thomas.petazzoni@free-electrons.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<1432591007-27689-1-git-send-email-thomas.petazzoni@free-electrons.com>",
        "References": "<1432591007-27689-1-git-send-email-thomas.petazzoni@free-electrons.com>",
        "Cc": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>",
        "Subject": "[Buildroot] [PATCH v4 2015.08 3/4] Makefile: implement a size-stats\n\ttarget",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>",
        "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>",
        "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@busybox.net>",
        "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>",
        "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "This commit implements a size-stats target that calls the script of\nthe same name to generate the graph and CSV files related to package\nand file sizes.\n\nSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\n---\n Makefile | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/Makefile b/Makefile\nindex cf244d7..c9b1e72 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -666,6 +666,14 @@ graph-depends: graph-depends-requirements\n \t|tee $(GRAPHS_DIR)/$(@).dot \\\n \t|dot $(BR2_GRAPH_DOT_OPTS) -T$(BR_GRAPH_OUT) -o $(GRAPHS_DIR)/$(@).$(BR_GRAPH_OUT)\n \n+size-stats:\n+\t$(Q)mkdir -p $(GRAPHS_DIR)\n+\t$(Q)$(TOPDIR)/support/scripts/size-stats --builddir $(BASE_DIR) \\\n+\t\t--graph $(BASE_DIR)/graphs/graph-size.$(BR_GRAPH_OUT) \\\n+\t\t--file-size-csv $(BASE_DIR)/build/file-size-stats.csv \\\n+\t\t--package-size-csv $(BASE_DIR)/build/package-size-stats.csv \\\n+\t\t--skeleton-path $(TARGET_SKELETON)\n+\n else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)\n \n all: menuconfig\n@@ -883,6 +891,7 @@ endif\n \t@echo '  manual-epub            - build manual in ePub'\n \t@echo '  graph-build            - generate graphs of the build times'\n \t@echo '  graph-depends          - generate graph of the dependency tree'\n+\t@echo '  size-stats             - generate stats of the filesystem size'\n \t@echo '  list-defconfigs        - list all defconfigs (pre-configured minimal systems)'\n \t@echo\n \t@echo 'Miscellaneous:'\n",
    "prefixes": [
        "v4",
        "2015.08",
        "3/4"
    ]
}