get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 15752,
    "url": "http://patches.dpdk.org/api/patches/15752/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1473419501-15719-1-git-send-email-thomas.monjalon@6wind.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "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",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1473419501-15719-1-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1473419501-15719-1-git-send-email-thomas.monjalon@6wind.com",
    "date": "2016-09-09T11:11:41",
    "name": "[dpdk-dev] scripts: reverse order of checked commits",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "f43d73152c3eaa319e73f30a1a50da340e802cd5",
    "submitter": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1473419501-15719-1-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/15752/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/15752/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id EF2FA6CC7;\n\tFri,  9 Sep 2016 13:11:48 +0200 (CEST)",
            "from mail-wm0-f44.google.com (mail-wm0-f44.google.com\n\t[74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 1F3E52B9C\n\tfor <dev@dpdk.org>; Fri,  9 Sep 2016 13:11:48 +0200 (CEST)",
            "by mail-wm0-f44.google.com with SMTP id w12so25424798wmf.0\n\tfor <dev@dpdk.org>; Fri, 09 Sep 2016 04:11:48 -0700 (PDT)",
            "from XPS13.localdomain (184.203.134.77.rev.sfr.net.\n\t[77.134.203.184]) by smtp.gmail.com with ESMTPSA id\n\tya1sm2870171wjb.23.2016.09.09.04.11.46 for <dev@dpdk.org>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 09 Sep 2016 04:11:46 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:subject:date:message-id;\n\tbh=utsG4z7nSHYo8rYOEgb/x+tqaN+0E40Kk8VlCHGMPbU=;\n\tb=C5YXeMGA7jWOLxRqJ2YvInXkPZEWIl9z2SEgknMaeYMhtXKN9XnrbpDXGEYF+rubJr\n\tbzKzDKJApIqZYWkjD/SzZe4/RQtulEBsY31iAlx2NlY3sQj5fliqU7beDlQP4vBPvx1s\n\t878aUMxWcNCI04hGla03O/kKhI9Bpm0zcutMU5dgZDyBVMGNEcN3+GOQ+IZQQyRYKpIY\n\tQU+maqR60ImBu9ndfat3Lf63Ewp9EW7VWXNKQtqQZN61Jp6FiZ0NaF49hOoqRfeDWC6B\n\tEd3yrIEQcuiT8i1CKKCdWHtvS3g46Kq9KTfqfp7/Q0SPiYZOrcdZYiMXqziYcC0RSNo+\n\tiU6g==",
        "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;\n\tbh=utsG4z7nSHYo8rYOEgb/x+tqaN+0E40Kk8VlCHGMPbU=;\n\tb=iJAC4Db0lNoXq4JdO16dGngnzQ0JoUxV2V0SsmVcioGYzoXvPqDMV0hhIZd2ST20vk\n\tF6khsSK/yTRnRNwTykevbtbyV6fj+oFfK/rEsmrEG4oAp/8uyXEPTWQWcBiW46jfBuxK\n\trT8zmyjGV+HSG5OV9KjWC+3L7fQ9TDxDBcWsoLQ2XNUD33tEstig0RajRtwNUi11VQjb\n\tRejWPfNsMeiMcDa5UJM3eiwDO+zrSChSEYg4jjrJVZjKvJmanuJoGZ5Ql1X/XMrZqRC4\n\tiuXhz3kPXaRdtPO3bs1SIUweUHF84AN4grR5SWxsqm/dKwHCP6/jAAb54IjDtbQNQyfs\n\tIrLQ==",
        "X-Gm-Message-State": "AE9vXwNiI0apbajhHMVfYGmh7Yrx4/OJIyZ1nHRZVsyZq8Z0tN+CPhPvHA9bNnAnyYxfmYre",
        "X-Received": "by 10.194.95.36 with SMTP id dh4mr2530040wjb.156.1473419507606; \n\tFri, 09 Sep 2016 04:11:47 -0700 (PDT)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri,  9 Sep 2016 13:11:41 +0200",
        "Message-Id": "<1473419501-15719-1-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.7.0",
        "Subject": "[dpdk-dev] [PATCH] scripts: reverse order of checked commits",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The list of git commits to check was in the reversed order.\nAlso add a comment in the help of checkpatches.sh about list input.\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n scripts/check-git-log.sh | 10 +++++-----\n scripts/checkpatches.sh  |  7 +++++--\n 2 files changed, 10 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/scripts/check-git-log.sh b/scripts/check-git-log.sh\nindex 6137098..1e05cf2 100755\n--- a/scripts/check-git-log.sh\n+++ b/scripts/check-git-log.sh\n@@ -49,11 +49,11 @@ fi\n \n range=${1:-origin/master..}\n \n-commits=$(git log --format='%h' $range)\n-headlines=$(git log --format='%s' $range)\n-bodylines=$(git log --format='%b' $range)\n-fixes=$(git log --format='%h %s' $range | grep -i ': *fix' | cut -d' ' -f1)\n-tags=$(git log --format='%b' $range | grep -i -e 'by *:' -e 'fix.*:')\n+commits=$(git log --format='%h' --reverse $range)\n+headlines=$(git log --format='%s' --reverse $range)\n+bodylines=$(git log --format='%b' --reverse $range)\n+fixes=$(git log --format='%h %s' --reverse $range | grep -i ': *fix' | cut -d' ' -f1)\n+tags=$(git log --format='%b' --reverse $range | grep -i -e 'by *:' -e 'fix.*:')\n bytag='\\(Reported\\|Suggested\\|Signed-off\\|Acked\\|Reviewed\\|Tested\\)-by:'\n \n # check headline format (spacing, no punctuation, no code)\ndiff --git a/scripts/checkpatches.sh b/scripts/checkpatches.sh\nindex 4addde4..622a5b6 100755\n--- a/scripts/checkpatches.sh\n+++ b/scripts/checkpatches.sh\n@@ -52,6 +52,9 @@ print_usage () {\n \n \tRun Linux kernel checkpatch.pl with DPDK options.\n \tThe environment variable DPDK_CHECKPATCH_PATH must be set.\n+\n+\tThe patches to check can be from files specified on the command line,\n+\tor latest git commits limited with -n option (default limit: origin/master).\n \tEND_OF_HELP\n }\n \n@@ -96,9 +99,9 @@ check () { # <patch> <commit> <title>\n \n if [ -z \"$1\" ] ; then\n \tif [ $number -eq 0 ] ; then\n-\t\tcommits=$(git rev-list origin/master..)\n+\t\tcommits=$(git rev-list --reverse origin/master..)\n \telse\n-\t\tcommits=$(git rev-list --max-count=$number HEAD)\n+\t\tcommits=$(git rev-list --reverse --max-count=$number HEAD)\n \tfi\n \tfor commit in $commits ; do\n \t\tsubject=$(git log --format='%s' -1 $commit)\n",
    "prefixes": [
        "dpdk-dev"
    ]
}