Show a patch.

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

{
    "id": 167,
    "url": "https://patches.dpdk.org/api/patches/167/",
    "web_url": "https://patches.dpdk.org/patch/167/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<1408353973-16663-7-git-send-email-david.marchand@6wind.com>",
    "date": "2014-08-18T09:26:12",
    "name": "[dpdk-dev,6/7] app/test: no more builtin commands",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6a32ded26ca269cdbf58db5900dd1af7137831a9",
    "submitter": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/people/3/",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/167/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/167/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/167/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "X-Gm-Message-State": "ALoCoQmvufvUbHBz2gXiwwQHl2oz6DxpogIrVf5aE+qEJ2ZtCrGcsngW70ghURUzVBAnrtfLJjl0",
        "List-Post": "<mailto:dev@dpdk.org>",
        "References": "<1408353973-16663-1-git-send-email-david.marchand@6wind.com>",
        "X-BeenThere": "dev@dpdk.org",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 6/7] app/test: no more builtin commands",
        "From": "David Marchand <david.marchand@6wind.com>",
        "Received": [
            "from mail-we0-f174.google.com (mail-we0-f174.google.com\n\t[74.125.82.174]) by dpdk.org (Postfix) with ESMTP id D7863B376\n\tfor <dev@dpdk.org>; Mon, 18 Aug 2014 11:23:09 +0200 (CEST)",
            "by mail-we0-f174.google.com with SMTP id x48so4744557wes.19\n\tfor <dev@dpdk.org>; Mon, 18 Aug 2014 02:26:32 -0700 (PDT)",
            "from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\tza9sm25087627wjc.29.2014.08.18.02.26.30 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 18 Aug 2014 02:26:31 -0700 (PDT)"
        ],
        "To": "dev@dpdk.org",
        "X-Mailer": "git-send-email 1.7.10.4",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=/S67NW7rmx2Nj2iTrgQ57ishT/lWvruaGRjvmoQiqqU=;\n\tb=Z0ocKZA51xejACxO6PGvI5qP3wkfu4/ILmOyW7Phmy/wJyKQvwC+9rSL0k09g1gYKC\n\tZp3KCB/FnGKj1CpWdFC5OU9uQzQG1R33A/tUUCR+QXAp2ZCTbqyAh1nLlgzEigk776XQ\n\tZJRw221g7OG/6YZTvBnE3tXJNprOXhH3x6hWwYWUksyl42b2lT0l/fdgTiySuHykVdWv\n\tgU0RZ68240V7YpRGtRdFTZsd5r9jrTQ4h/OjssTcLA5hGmrUGpuBmjtu5pgALcn1a4BI\n\t+CJ0zKo+mCTSxJAu0ml6dyIzEHSAguxwOBKb4FDK4+EnUOsg9dqCWhWGMBICd5/wHqPy\n\tq1iA==",
        "Date": "Mon, 18 Aug 2014 11:26:12 +0200",
        "X-Received": "by 10.180.81.169 with SMTP id b9mr39589841wiy.10.1408353992252; \n\tMon, 18 Aug 2014 02:26:32 -0700 (PDT)",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "X-List-Received-Date": "Mon, 18 Aug 2014 09:23:10 -0000",
        "In-Reply-To": "<1408353973-16663-1-git-send-email-david.marchand@6wind.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<1408353973-16663-7-git-send-email-david.marchand@6wind.com>",
        "Return-Path": "<david.marchand@6wind.com>"
    },
    "content": "The builtin commands list is now empty, we can remove it.\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n app/test/commands.c |    6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/app/test/commands.c b/app/test/commands.c\nindex 0640ac9..b7c6ee0 100644\n--- a/app/test/commands.c\n+++ b/app/test/commands.c\n@@ -324,9 +324,8 @@ cmdline_parse_ctx_t main_ctx[] = {\n int commands_init(void)\n {\n \tstruct test_command *t;\n-\tchar builtin_commands[] = \"\";\n \tchar *commands, *ptr;\n-\tint commands_len = strlen(builtin_commands) + 1;\n+\tint commands_len = 0;\n \n \tTAILQ_FOREACH(t, &commands_list, next) {\n \t\tcommands_len += strlen(t->command) + 1;\n@@ -340,7 +339,8 @@ int commands_init(void)\n \tTAILQ_FOREACH(t, &commands_list, next) {\n \t\tptr += sprintf(ptr, \"%s#\", t->command);\n \t}\n-\tptr += sprintf(ptr, \"%s\", builtin_commands);\n+\tptr--;\n+\tptr[0] = '\\0';\n \n \tcmd_autotest_autotest.string_data.str = commands;\n \treturn 0;\n",
    "prefixes": [
        "dpdk-dev",
        "6/7"
    ]
}