From: Don Zickus <[email protected]>

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/e338eecf3fe79054e8a31b8c39a1234b5acfdabe
 e338eecf3fe79054e8a31b8c39a1234b5acfdabe PCI: rockchip: Fix bus checks in 
rockchip_pcie_valid_device()

https://gitlab.com/cki-project/kernel-ark/-/commit/850280156f6421a404f2351bee07a0e7bedfd4c6
 850280156f6421a404f2351bee07a0e7bedfd4c6 phy: ti: am654: Fix a leak in 
serdes_am654_probe()

https://gitlab.com/cki-project/kernel-ark/-/commit/43557447afe99a0181e0f80e682a7cbdc03b4e7a
 43557447afe99a0181e0f80e682a7cbdc03b4e7a gitattributes: Remove unnecesary 
export restrictions

https://gitlab.com/cki-project/kernel-ark/-/commit/f003c79ead7f293e9315954c2c0fe39dda34459d
 f003c79ead7f293e9315954c2c0fe39dda34459d Add RHMAINTAINERS file and supporting 
conf

https://gitlab.com/cki-project/kernel-ark/-/commit/825b7aa1169c8a40f81b3b3a886a866ae80c3dc2
 825b7aa1169c8a40f81b3b3a886a866ae80c3dc2 gitlab: Add CI job for packaging 
scripts

Signed-off-by: Don Zickus <[email protected]>
---
 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
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to