get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 126241,
    "url": "https://patches.dpdk.org/api/patches/126241/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230418140726.1472209-2-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": "<20230418140726.1472209-2-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230418140726.1472209-2-thomas@monjalon.net",
    "date": "2023-04-18T14:07:25",
    "name": "[1/2] devtools: fix check of multiple commits fixed at once",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f6f5835990f3c9014010c2f8687158a075f6961e",
    "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/20230418140726.1472209-2-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 27760,
            "url": "https://patches.dpdk.org/api/series/27760/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=27760",
            "date": "2023-04-18T14:07:24",
            "name": "minor changes in script used for backports",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/27760/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/126241/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/126241/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 A5ADD4297D;\n\tTue, 18 Apr 2023 16:07:59 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9326642D0E;\n\tTue, 18 Apr 2023 16:07:59 +0200 (CEST)",
            "from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com\n [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id 7D65342BD9;\n Tue, 18 Apr 2023 16:07:58 +0200 (CEST)",
            "from compute6.internal (compute6.nyi.internal [10.202.2.47])\n by mailout.nyi.internal (Postfix) with ESMTP id 236985C0127;\n Tue, 18 Apr 2023 10:07:58 -0400 (EDT)",
            "from mailfrontend1 ([10.202.2.162])\n by compute6.internal (MEProxy); Tue, 18 Apr 2023 10:07:58 -0400",
            "by mail.messagingengine.com (Postfix) with ESMTPA; Tue,\n 18 Apr 2023 10:07:57 -0400 (EDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n cc:cc:content-transfer-encoding:content-type:date:date:from:from\n :in-reply-to:in-reply-to:message-id:mime-version:references\n :reply-to:sender:subject:subject:to:to; s=fm3; t=1681826878; x=\n 1681913278; bh=DBjpIhlpEdO6yRSV2wjJMypp/QFJAx7cX7M/Be6rp8k=; b=o\n j/nHXFncIUptSBioZ6jJH6jTv5cLoVVv4xaZJL5niQNJ9pvgq/BQgLsaO5ehPB3O\n z9rv/VxtXNJYvbpZTatNaTu8vpYTKTzh2Qzo+fZytuRUITpP4eZncNz575wPUaGY\n mrzZ0Rh3NSCYaNAwOORWFKohzeSMHh1UiN4Tjbm9SUOItGGJRCsuh9CxINWYzhoY\n L6AtFJkW96ScxtjHLbCHct/oCK2Bey1K3btPDMuwHtJ6fWhRBX/wvFbppsKsFmnp\n eA8OvMYs1XM5h4UjYgCavJ9kKbkd6Pj4dBsRBHgd8LQNC+n7hfg3LUSWQycVgHw6\n YPs1H9AIlw5Tt2mJjDN9Q==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:cc:content-transfer-encoding\n :content-type:date:date:feedback-id:feedback-id:from:from\n :in-reply-to:in-reply-to:message-id:mime-version:references\n :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy\n :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1681826878; x=\n 1681913278; bh=DBjpIhlpEdO6yRSV2wjJMypp/QFJAx7cX7M/Be6rp8k=; b=B\n ghdOXdKyDc0b4ZCS8xk/xhhdxRIKHNWHrjRGeHUXNy3ZeZ6v67n0ESQpmoxUm3Kt\n JLGhQCsObbVqBVJPMcRzyk+3p57Wpfe1C1zvrx9nk8xHFpGkoHQuOwcuUTsUSYgJ\n o9vwnBswqmEOpu4hHa+4mgLUYhgAlPncMybRtHLOrBfyKdI1PN7MGD7T8KR+IWGe\n USxU6Muv+ntUa7T5CGl3Jl4O0dcF38VqdSC2ePAjHn1HrByny9uk2S+uCqQ06xt7\n 08GHi55PEjyqa2eo8A51LDUDZAyEzhYOyKmLJeFEpI9PYc0AAqHBfymtSGVI4Vhi\n atR3bKnQilrWTB0p4Na3A=="
        ],
        "X-ME-Sender": "<xms:PaQ-ZJzprLHZ-R4dPI7BX9Oq2vuk2VNPtVvM-5Jz0xolE0e5IfPYcg>\n <xme:PaQ-ZJS7R-wnSZMzZOzeTpobuGPwljpln14IcetZXRCM8xrxwLUotDElcx8XQvY9N\n nv8XHhL2RYSlGkaoQ>",
        "X-ME-Received": "\n <xmr:PaQ-ZDUu4khDjCyPxhUjyrdHGVtGTZoxc5y3dsGdgh5mc5y78GzJKAltMf2k_obDNEVAG53he8DUHHRFpShEK_zx4Zl6ViQ>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedvhedrvdelkedgjedvucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhm\n rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc\n ggtffrrghtthgvrhhnpedvjefhudeghedvtdeijeeigeetuedugfejueekieeltdfhteev\n keehhfeilefhtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh\n hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght",
        "X-ME-Proxy": "<xmx:PqQ-ZLi2kBGYATefzG2XhTrr9gAzXGx8djzMQSjTH2oSPmclbZegSQ>\n <xmx:PqQ-ZLDgqrwEb2OJEecQ1NqHdsnt4--FXQyuyZHPsZO10C9q-u5Y4Q>\n <xmx:PqQ-ZEJnxh227IC5ThI6pXxbUxyQaP9khLWMzzDmYsDAAfs5WnOwMA>\n <xmx:PqQ-ZA7hEvEj_bNFmx2ErVt4w0zn3o74RXIlaDQxgX819amqw9pwNA>",
        "Feedback-ID": "i47234305:Fastmail",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org,\n\tYuanhan Liu <yliu@fridaylinux.org>",
        "Subject": "[PATCH 1/2] devtools: fix check of multiple commits fixed at once",
        "Date": "Tue, 18 Apr 2023 16:07:25 +0200",
        "Message-Id": "<20230418140726.1472209-2-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.40.0",
        "In-Reply-To": "<20230418140726.1472209-1-thomas@monjalon.net>",
        "References": "<20230418140726.1472209-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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"
    },
    "content": "When looking for fixes to backport,\nonly the first origin commit hash (from \"Fixes:\") was checked.\nThere is very little chance that the next commits being fixed\nhave a wrong hash in the commit log of the fix,\nbut it is fixed by checking them all before proceeding further.\n\nFixes: 752d8e097ec1 (\"scripts: show fixes with release version of bug\")\nCc: stable@dpdk.org\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n devtools/git-log-fixes.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh\nindex 8a4a8470c2..4690dd4545 100755\n--- a/devtools/git-log-fixes.sh\n+++ b/devtools/git-log-fixes.sh\n@@ -68,7 +68,7 @@ origin_version () # <origin_hash> ...\n {\n \tfor origin in $* ; do\n \t\t# check hash is valid\n-\t\tgit rev-parse -q --verify $1 >&- || continue\n+\t\tgit rev-parse -q --verify $origin >&- || continue\n \t\t# get version of this bug origin\n \t\tlocal origver=$(commit_version $origin)\n \t\tlocal roothashes=\"$(origin_filter $origin)\"\n",
    "prefixes": [
        "1/2"
    ]
}