get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94249,
    "url": "https://patches.dpdk.org/api/patches/94249/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210615124949.411525-1-thomas@monjalon.net/",
    "project": {
        "id": 1,
        "url": "https://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": "<20210615124949.411525-1-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210615124949.411525-1-thomas@monjalon.net",
    "date": "2021-06-15T12:49:49",
    "name": "devtools: fix file listing in maintainers check",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "2fb21b59cd20fff4ba7e6ddab273dcf3ab723620",
    "submitter": {
        "id": 685,
        "url": "https://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210615124949.411525-1-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 17337,
            "url": "https://patches.dpdk.org/api/series/17337/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17337",
            "date": "2021-06-15T12:49:49",
            "name": "devtools: fix file listing in maintainers check",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/17337/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94249/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/94249/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 91674A0C47;\n\tTue, 15 Jun 2021 14:50:04 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0BB2D4067A;\n\tTue, 15 Jun 2021 14:50:04 +0200 (CEST)",
            "from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com\n [64.147.123.20])\n by mails.dpdk.org (Postfix) with ESMTP id 13E8A40140;\n Tue, 15 Jun 2021 14:50:02 +0200 (CEST)",
            "from compute4.internal (compute4.nyi.internal [10.202.2.44])\n by mailout.west.internal (Postfix) with ESMTP id BEC7BC0C;\n Tue, 15 Jun 2021 08:49:59 -0400 (EDT)",
            "from mailfrontend2 ([10.202.2.163])\n by compute4.internal (MEProxy); Tue, 15 Jun 2021 08:50:00 -0400",
            "by mail.messagingengine.com (Postfix) with ESMTPA; Tue,\n 15 Jun 2021 08:49:58 -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=QfnhiS0eukpYyWXyxDNlnkQVvT\n jU5Ciq2I/4PGkIptE=; b=JVtdKV76YSnUQuqZWinozdZepS8vhPuVY596aSF29W\n 5K/30f/knppgpsK180IIBp/pwZrPssEhSdxRh+fHVO+EzF0IgAJ44mQfYttuzNxy\n Jp3jM4+eZdOi0Xqz/bqiPcgvpE5v/L0tPyHK9HfWp3crbQKydj64xgro/5ShkDRZ\n JPky6Ys35UUJiucaEgoKCbXTtIBjCotCU2/II8jPXp95sjp4cOt8Li8LZk6s0KIO\n IvStoAz9zMSUB/lJq1vW8KBakrochdzE0JDKideEHDuFFiqYFssn7wHcb/tDCCqi\n k31+S2kVS8c1o8oiLNlEsEayNj7MlyopuFP3rhTUqNgA==",
            "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=QfnhiS0eukpYyWXyx\n DNlnkQVvTjU5Ciq2I/4PGkIptE=; b=jPz9QMkzcJjcMFDgLrVjR27WUv0NXNYf2\n dAB1LW6iaU62KOa7WJ0FizdW8vUPOXrJSocd06S9+DRPUjKEwq2QTGi2LYYo0MM3\n y0xquG2k4GN4aiTq9G19IkILg4bnYibhFPo9pCl4exwWqpmwYkZuNhPlvxc6XqHn\n AhMCFJHvhAyCUCNiMaS2+dR3xDIvSe5iFAmCp08ERLkfN9/HWU4YK2XbSqNJDWJw\n 0wW+MJ08fCpln+P1JSbOr7VVeICGP8rtplb7SwehMcHGyjf2UpJZ3sfGhpiZLTX8\n /HSNMv/CAMZe1twSYcG8kIXhFjoSqBgJv6xj3wEp5/LMg+4xmZqzA=="
        ],
        "X-ME-Sender": "<xms:96HIYFqZdVxSEiZDd0wvnxGtJNF8RGl5QcuB_yis4gM6aWJmT8Utqw>\n <xme:96HIYHpDx7jIVbgYj3NYhDDpMb-INJDzHIK5YilYTtbZXjj6HQFdG8X-t9QCEEsof\n p4UVvnZ9YBw37Nsaw>",
        "X-ME-Received": "\n <xmr:96HIYCOvT6saUYB8SyjedI3pMswwi7yycknrLoszYYdyX9yKpc6gmCuT5HzXyUwskEl0oIDa2Z-S2JpbawtL-b1V5h-vum8>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedgheejucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre\n dttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhho\n nhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvledvudehvdduudevuedvve\n ehgeduleegiefgjeehudehtddtgeduffejiefhgfenucevlhhushhtvghrufhiiigvpedt\n necurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvg\n ht",
        "X-ME-Proxy": "<xmx:96HIYA5wbpuhDlmdwRT1kLUvOb_MH98mIvrM6mHryP2Q0nZh0rQuPg>\n <xmx:96HIYE4O3hNUVTOpcRMiL0dhf3YbcgN7QbINngleBY3NgAG6V0uryg>\n <xmx:96HIYIjHNEvxZ5xaGSftBfIm-GoFcIzecVS-l7sPk_XIfeSij2vxhg>\n <xmx:96HIYJhtaMiSRFGAYdtNPogLuUffAErnl4c2UPYIXicO9PUM93Dd9A>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org",
        "Date": "Tue, 15 Jun 2021 14:49:49 +0200",
        "Message-Id": "<20210615124949.411525-1-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.31.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] devtools: fix file listing in maintainers check",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "When having multiple working trees, the main one has a .git directory\nwhile attached trees have a .git file.\nThus the git check should work for both file and directory.\n\nIn the case there is no working tree (.git not readable), the command\n\"find\" is used and should be able to list paths with wildcards.\nWildcards work only as shell expansion in the case of file paths,\nso the quotes must be removed.\n\nFixes: 27c2ce563216 (\"maintainers: start a Linux-style file\")\nCc: stable@dpdk.org\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n devtools/check-maintainers.sh | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/devtools/check-maintainers.sh b/devtools/check-maintainers.sh\nindex df3f740b6e..71697bb352 100755\n--- a/devtools/check-maintainers.sh\n+++ b/devtools/check-maintainers.sh\n@@ -15,10 +15,10 @@ files () # <path> [<path> ...]\n \tif [ -z \"$1\" ] ; then\n \t\treturn\n \tfi\n-\tif [ -d .git ] ; then\n+\tif [ -r .git ] ; then\n \t\tgit ls-files \"$1\"\n \telse\n-\t\tfind \"$1\" -type f |\n+\t\tfind $1 -type f |\n \t\tsed 's,^\\./,,'\n \tfi |\n \t# if not ended by /\n",
    "prefixes": []
}