From: Don Zickus <dzickus(a)redhat.com>
Based on a suggestion from Thorsten Leemhuis.
Thorsten suggested making it easier to see that individual change
by embedding the url to the commit in the patchlist.changelog file.
This change does exactly that.
Old output:
e338eecf3fe79054e8a31b8c39a1234b5acfdabe PCI: rockchip: Fix bus checks in
rockchip_pcie_valid_device()
850280156f6421a404f2351bee07a0e7bedfd4c6 phy: ti: am654: Fix a leak in
serdes_am654_probe()
43557447afe99a0181e0f80e682a7cbdc03b4e7a gitattributes: Remove unnecesary export
restrictions
f003c79ead7f293e9315954c2c0fe39dda34459d Add RHMAINTAINERS file and supporting conf
825b7aa1169c8a40f81b3b3a886a866ae80c3dc2 gitlab: Add CI job for packaging scripts
New output:
https://gitlab.com/cki-project/kernel-ark/-/commit/e338eecf3fe79054e8a31b...
e338eecf3fe79054e8a31b8c39a1234b5acfdabe PCI: rockchip: Fix bus checks in
rockchip_pcie_valid_device()
https://gitlab.com/cki-project/kernel-ark/-/commit/850280156f6421a404f235...
850280156f6421a404f2351bee07a0e7bedfd4c6 phy: ti: am654: Fix a leak in
serdes_am654_probe()
https://gitlab.com/cki-project/kernel-ark/-/commit/43557447afe99a0181e0f8...
43557447afe99a0181e0f80e682a7cbdc03b4e7a gitattributes: Remove unnecesary export
restrictions
https://gitlab.com/cki-project/kernel-ark/-/commit/f003c79ead7f293e931595...
f003c79ead7f293e9315954c2c0fe39dda34459d Add RHMAINTAINERS file and supporting conf
https://gitlab.com/cki-project/kernel-ark/-/commit/825b7aa1169c8a40f81b3b...
825b7aa1169c8a40f81b3b3a886a866ae80c3dc2 gitlab: Add CI job for packaging scripts
Signed-off-by: Don Zickus <dzickus(a)redhat.com>
---
redhat/genspec.sh | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/redhat/genspec.sh b/redhat/genspec.sh
index a2bfa07a5ef6..a34edc42e3c8 100755
--- a/redhat/genspec.sh
+++ b/redhat/genspec.sh
@@ -274,12 +274,21 @@ if [ "$SINGLE_TARBALL" = 0 ]; then
fi
# generate Patchlist.changelog file that holds the shas and commits not
-# included upstream.
+# included upstream and git commit url.
+ARK_COMMIT_URL="https://gitlab.com/cki-project/kernel-ark/-/commit"
+
+# sed convert
+# <sha> <description>
+# to
+# <ark_commit_url>/<sha>
+# <sha> <description>
+#
git log --no-merges --pretty=oneline --no-decorate master.. \
":(exclude,top).gitlab-ci.yml" \
":(exclude,top)makefile" \
":(exclude,top)Makefile.rhelver" \
- ":(exclude,top)redhat" > $plistf.changelog
+ ":(exclude,top)redhat" | sed \
+ "s!^\([^ ]*\)!$ARK_COMMIT_URL/\1\n &!; s!\$!\n!" > $plistf.changelog
sed -i "s/%%PATCHLIST%%//" $SPECFILE
sed -i "s/%%APPLYPATCH%%//" $SPECFILE
--
GitLab