[OS-BUILD PATCH 6/6] Add zero-commit to format-patch options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Justin M. Forbes" <jforbes@xxxxxxxxxxxxxxxxx>

Because of the way the trees are mangled, the hash for patches
change with each build.  This creates an unnecessary line of diff in
each patch file which is makes a diff in dist-git difficult to read.
Let's zero it to clean it up.

Signed-off-by: Justin M. Forbes <jforbes@xxxxxxxxxxxxxxxxx>
---
 redhat/genspec.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/redhat/genspec.sh b/redhat/genspec.sh
index 65829f959978..79e71af04ee9 100755
--- a/redhat/genspec.sh
+++ b/redhat/genspec.sh
@@ -256,7 +256,7 @@ if [ "$SINGLE_TARBALL" = 0 ]; then
 		":(exclude,top)Makefile.rhelver" \
 		":(exclude,top)redhat")
 	for c in $COMMITS; do
-		patch=$(git format-patch -1 "$c")
+		patch=$(git format-patch --zero-commit -1 "$c")
 		echo "$patch" >> $plistf
 		mv $patch $SOURCES/
 		sed -i "s/%%PATCHLIST%%/Patch$pnum: $patch\n%%PATCHLIST%%/" $SPECFILE
-- 
2.26.2
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux