Patch Detail
Show a patch.
GET /api/1.1/patches/13857/?format=api
{ "id": 13857, "url": "https://patchwork.libcamera.org/api/1.1/patches/13857/?format=api", "web_url": "https://patchwork.libcamera.org/patch/13857/", "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": "<20210915203551.796723-1-kieran.bingham@ideasonboard.com>", "date": "2021-09-15T20:35:51", "name": "utils: gen-version: Remove redundant character", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": false, "hash": "a2150cb60afb0a7410d37ec1f1a62dcb0622d35a", "submitter": { "id": 4, "url": "https://patchwork.libcamera.org/api/1.1/people/4/?format=api", "name": "Kieran Bingham", "email": "kieran.bingham@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/13857/mbox/", "series": [ { "id": 2534, "url": "https://patchwork.libcamera.org/api/1.1/series/2534/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2534", "date": "2021-09-15T20:35:51", "name": "utils: gen-version: Remove redundant character", "version": 1, "mbox": "https://patchwork.libcamera.org/series/2534/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/13857/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/13857/checks/", "tags": {}, "headers": { "Return-Path": "<kieran.bingham@ideasonboard.com>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 93056BF01C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 15 Sep 2021 20:35:59 +0000 (UTC)", "from localhost.localdomain\n\t(cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net\n\t[86.31.172.11])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id EE52A2A5;\n\tWed, 15 Sep 2021 22:35:58 +0200 (CEST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1631738159;\n\tbh=L2OAxstbFr57gDxDiLXi5IVQYCSHK11Sm7L/1f5wGSA=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=F/ptUXMvUuG98w0P0U8F7fivSabpM/HThgW+hKftdtn7jFWe3xL0FdBTm+JppGzRR\n\tK3vgZIbj2UguK/eMUMSmE2Kau3CFkIbkIX35k8PNVBYUM4ZtHgk+Plgf1ktej/HfL6\n\tBsI2xB8EXfPZEyyyAJZ+qRENZdvcOLlyvsLhHJhI=", "From": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "To": "<parsemail@patchwork.libcamera.org>", "Cc": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "Subject": "[PATCH] utils: gen-version: Remove redundant character", "Date": "Wed, 15 Sep 2021 21:35:51 +0100", "Message-Id": "<20210915203551.796723-1-kieran.bingham@ideasonboard.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "The 'g' version prefix, is added and then stripped.\nPrevent adding it in the first place, to simplify the implementation.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n utils/gen-version.sh | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/utils/gen-version.sh b/utils/gen-version.sh\nindex b09ad495f86a..34d5d969311c 100755\n--- a/utils/gen-version.sh\n+++ b/utils/gen-version.sh\n@@ -17,7 +17,7 @@ then\n \t# Handle an un-tagged repository\n \tsha=$(git describe --abbrev=8 --always 2>/dev/null)\n \tcommits=$(git log --oneline | wc -l 2>/dev/null)\n-\tversion=\"v0.0.0-$commits-g$sha\"\n+\tversion=\"v0.0.0-$commits-$sha\"\n fi\n \n # Append a '-dirty' suffix if the working tree is dirty. Prevent false\n@@ -28,8 +28,8 @@ then\n fi\n git diff-index --quiet HEAD || version=\"$version-dirty ($(date --iso-8601=seconds))\"\n \n-# Replace first '-' with a '+' to denote build metadata, strip the 'g' in from\n-# of the git SHA1 and remove the initial 'v'.\n-version=$(echo \"$version\" | sed -e 's/-/+/' | sed -e 's/-g/-/' | cut -c 2-)\n+# Replace first '-' with a '+' to denote build metadata, and remove the initial\n+# 'v'.\n+version=$(echo \"$version\" | sed -e 's/-/+/' | cut -c 2-)\n \n echo \"$version\"\n", "prefixes": [] }