Show a patch.

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

{
    "id": 73377,
    "url": "https://patches.dpdk.org/api/patches/73377/",
    "web_url": "https://patches.dpdk.org/patch/73377/",
    "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": "<20200707085424.2317373-1-thomas@monjalon.net>",
    "date": "2020-07-07T08:54:23",
    "name": "devtools: add checkpatch spelling dictionary builder",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6abe07a8a4dc588b98709762c8d1aaa08e75fe33",
    "submitter": {
        "id": 685,
        "url": "https://patches.dpdk.org/api/people/685/",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/patch/73377/mbox/",
    "series": [
        {
            "id": 10839,
            "url": "https://patches.dpdk.org/api/series/10839/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10839",
            "date": "2020-07-07T08:54:23",
            "name": "devtools: add checkpatch spelling dictionary builder",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/10839/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73377/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/73377/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "Date": "Tue,  7 Jul 2020 10:54:23 +0200",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-ME-Sender": "<xms:UzgEXz4M2Ggx7c0qqXTdKB2cTuWncEvy6cgrFFkVx1NcAIzPdACxCw>",
        "X-Mailer": "git-send-email 2.27.0",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D7540A00BE;\n\tTue,  7 Jul 2020 10:54:47 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 09E881D97D;\n\tTue,  7 Jul 2020 10:54:47 +0200 (CEST)",
            "from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com\n [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id D49311D683\n for <dev@dpdk.org>; Tue,  7 Jul 2020 10:54:45 +0200 (CEST)",
            "from compute7.internal (compute7.nyi.internal [10.202.2.47])\n by mailout.nyi.internal (Postfix) with ESMTP id 36A035C00E7;\n Tue,  7 Jul 2020 04:54:44 -0400 (EDT)",
            "from mailfrontend1 ([10.202.2.162])\n by compute7.internal (MEProxy); Tue, 07 Jul 2020 04:54:44 -0400",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id B2D9D328005D;\n Tue,  7 Jul 2020 04:54:42 -0400 (EDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding; s=fm1; bh=IO0Tz+O/IvWI5Ijb3qDNyeD2rz\n 6BDEuhqP3dp4n3fWM=; b=wTyDuKORnTl0Do2T+8u9ZMfXD8CUilqOh/k1z6vGZw\n N5aIf9v6Dldwn9EfGJjL+YLYZiR+hvacEd6BNHywYhqFHCzATHDa5IpVshXnY0EA\n uheFXZJ76M6Thj44BQsReh8pSE3RFQ4q3Wzzj4GNm6UPY1kQ2tX/fhxFtd2OalfH\n PeeMhkCelveSWYVZqXOu3MURyzLCMKxJ4eCYgpqiJH/tOUOQ3HWq0pxVWqP19NWL\n e11UxeZAlA1Tu9FdyKSaWeZqaeB58UtTxoGCOo6e00sATudUq74klFzPbqqoYO6F\n f2BRlOV9tVuzgSXoNbZRyxw1AO5XG2/oEaEBuXcLPz7Q==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy\n :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=IO0Tz+O/IvWI5Ijb3\n qDNyeD2rz6BDEuhqP3dp4n3fWM=; b=jSxpnQTz8b9ikBHSG4GmWai8OUaO65Vcr\n LmHVnGaXU270/0QBOkglHqveSKHPhHp4YODCNBhaZqqBavSFoGHwLX1D5yncaVaw\n Cf/XwPdZNzRnNTHgq4qHngbhCg90bEHIXCPQIheubDrjUUaTqN6YfghofqRZrFGw\n rjKcfarAO0UMsjN/lamQ15q05pcmdjUmwSQgKMFLTl8E2QCnRXlE8GqsL6v0A4FF\n E5HXsVS/gjplDxdT0zC7XAaynk5Lh6NOGGBD9nBqRgNxl7KrUK+ip6D1vNYtjpbi\n WbceUjAmhkehzvdBgijW4/tsH/VnOKuGbVl4245zTdrznVV2c6tQQ=="
        ],
        "MIME-Version": "1.0",
        "X-ME-Proxy": "<xmx:UzgEX44GGxSMly3DqlqabswMBpL13k5QzKj5RTx5GLnMebMSkQkepg>\n <xmx:UzgEX6e2rf0gnL1dwmGL40KNp0nkTdllwSBEssaibAplO-c-0jWecA>\n <xmx:UzgEX0I76I0GZlosi4E63-VKTAiYB2A0O6YCH55IbIvUnCYd5UpNKw>\n <xmx:VDgEXyk92PTv_Lw44SHnIGpCgHLZIkwCjgLky7GEp7txZwiCZMfe8g>",
        "Message-Id": "<20200707085424.2317373-1-thomas@monjalon.net>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Precedence": "list",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "To": "dev@dpdk.org",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduiedrudehgddtfecutefuodetggdotefrodftvf\n curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu\n uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd\n dtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhn\n jhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepgfeufeejtedugfevtedtkedvke\n etfeeiffeiveegheejvedtheeviefgffeuhfeinecuffhomhgrihhnpehgihhthhhusgdr\n tghomhenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivg\n eptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdr\n nhgvth",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-BeenThere": "dev@dpdk.org",
        "Content-Transfer-Encoding": "8bit",
        "Cc": "david.marchand@redhat.com,\n\tferruh.yigit@intel.com",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH] devtools: add checkpatch spelling dictionary\n\tbuilder"
    },
    "content": "The script checkpatch.pl (used in checkpatches.sh) can use a dictionary\nfrom the codespell project to check spelling.\nThere are multiple dictionaries to be used.\n\nThe script build-dict.sh concatenate multiple dictionaries and remove\nsome annoying false positives.\n\nThe dictionary built by this script must be saved in a file which\nis referenced with the environment variable DPDK_CHECKPATCH_CODESPELL.\nThe easiest is to export this variable in ~/.config/dpdk/devel.config.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n devtools/build-dict.sh | 22 ++++++++++++++++++++++\n 1 file changed, 22 insertions(+)\n create mode 100755 devtools/build-dict.sh",
    "diff": "diff --git a/devtools/build-dict.sh b/devtools/build-dict.sh\nnew file mode 100755\nindex 0000000000..a8cac49029\n--- /dev/null\n+++ b/devtools/build-dict.sh\n@@ -0,0 +1,22 @@\n+#! /bin/sh -e\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright 2020 Mellanox Technologies, Ltd\n+\n+# Build a spelling dictionary suitable for DPDK_CHECKPATCH_CODESPELL\n+\n+# path to local clone of https://github.com/codespell-project/codespell.git\n+codespell_path=$1\n+\n+# concatenate codespell dictionaries, except GB/US one\n+for suffix in .txt _code.txt _informal.txt _names.txt _rare.txt _usage.txt ; do\n+\tcat $codespell_path/codespell_lib/data/dictionary$suffix\n+done |\n+\n+# remove too short or wrong checks\n+sed '/^..->/d' |\n+sed '/^uint->/d' |\n+sed \"/^doesn'->/d\" |\n+sed '/^wasn->/d' |\n+\n+# print to stdout\n+cat\n",
    "prefixes": []
}