Show a patch.

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

{
    "id": 19089,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/19089/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/19089/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20230926120831.8891-1-laurent.pinchart@ideasonboard.com>",
    "date": "2023-09-26T12:08:31",
    "name": "[libcamera-devel] utils: update-kernel-headers: Support git worktrees",
    "commit_ref": "d2094a0185647666ca8f810265521f0b892c4646",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "9db3a02d8117c0e4ca4676c5ff557050a764722d",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/19089/mbox/",
    "series": [
        {
            "id": 4039,
            "url": "https://patchwork.libcamera.org/api/1.1/series/4039/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4039",
            "date": "2023-09-26T12:08:31",
            "name": "[libcamera-devel] utils: update-kernel-headers: Support git worktrees",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/4039/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/19089/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/19089/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 975DAC326B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 26 Sep 2023 12:08:23 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 00C8762944;\n\tTue, 26 Sep 2023 14:08:23 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7011A61E0E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 26 Sep 2023 14:08:21 +0200 (CEST)",
            "from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi\n\t[213.243.189.158])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 65068842\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 26 Sep 2023 14:06:40 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1695730103;\n\tbh=ui8TQVBWriK8F//nPXM4F8S8igRdcKuYshoP1OxXnvo=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=35BJU6+nBDVpqv1Mid3gqou2C9+WyKAAT9M5fBOEASzIAj+7J56WXvyvpJNXoY1lF\n\tzena2zixX1H2sv/+iIKuih1iZrQMcgDlQTTFXHANYq2CYPlJM9D4MwrNM2b1U4lKUj\n\tbj/5GS4WPJlW0bo3YK1NN4UmRzoF/vjiIWe+Lal3etpZAVsXduO31z1ebmEhV6w4kC\n\tH/cH0VMctJ4AEM3jlik7uJs060V1fOlb9/9onxhuaEjYnON2idI8vyHWsVh2Vz1SOw\n\tbnIQCE954oFFss4VqDK6CNsxlgewIXLQRlZWY5cZIfQgGUB9IjmiovmLKXgxSozz9b\n\tI5bLqqV/JfyHQ==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1695730000;\n\tbh=ui8TQVBWriK8F//nPXM4F8S8igRdcKuYshoP1OxXnvo=;\n\th=From:To:Subject:Date:From;\n\tb=g6TPXKhmwpAsH0/Ij0DwidK6DEeJ7hxJOAFsXgKGETGitHgqPMIFqjVZdreDO58tr\n\tTzM4QiNv+M2BJHoJ3vkIc39eBob5vuS2u79DBYf34YKEsu1GOiiNNufWBNlxjTJWuK\n\tmbnTXJUQTRxATCFjnvtp4BeAB1O28hT2uXYo+PZc="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"g6TPXKhm\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Tue, 26 Sep 2023 15:08:31 +0300",
        "Message-ID": "<20230926120831.8891-1-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.41.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH] utils: update-kernel-headers: Support git\n\tworktrees",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "From": "Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "When operating on a git worktree, the Linux kernel directory contains a\n.git file, not a .git directory. Relax the git tree check to support\nboth.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n utils/update-kernel-headers.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/utils/update-kernel-headers.sh b/utils/update-kernel-headers.sh\nindex a006452e6836..590986d2b7e2 100755\n--- a/utils/update-kernel-headers.sh\n+++ b/utils/update-kernel-headers.sh\n@@ -18,7 +18,7 @@ if [ \"$line\" != \"# Kbuild for top-level directory of the kernel\" ] ; then\n \texit 1\n fi\n \n-if [ ! -d \"${kernel_dir}/.git\" ] ; then\n+if [ ! -e \"${kernel_dir}/.git\" ] ; then\n \techo \"Directory ${kernel_dir} doesn't contain a git tree\"\n \texit 1\n fi\n",
    "prefixes": [
        "libcamera-devel"
    ]
}