summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-11-29 12:44:07 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-11-29 12:44:07 (GMT)
commit8fe0680679e77738d1b30af417dcc2dce63ef67b (patch)
tree9becd182513b903d1a7e57786fbe91661fa17d46 /tools
parent711a99a580c5c29a8255feaf051984ad99f1f76f (diff)
downloadmxe-8fe0680679e77738d1b30af417dcc2dce63ef67b.zip
mxe-8fe0680679e77738d1b30af417dcc2dce63ef67b.tar.gz
mxe-8fe0680679e77738d1b30af417dcc2dce63ef67b.tar.bz2
patch-tool-mxe: replace commit hash with zeros
Decrease patch diff size. See #983
Diffstat (limited to 'tools')
-rwxr-xr-xtools/patch-tool-mxe1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe
index 2bbb64b..09539ab 100755
--- a/tools/patch-tool-mxe
+++ b/tools/patch-tool-mxe
@@ -100,6 +100,7 @@ function export_patch {
--no-signature \
--stdout \
dist..HEAD | \
+ sed 's/^From [0-9a-f]\{40\} /From 0000000000000000000000000000000000000000 /' | \
sed 's/^index .......\.\......../index 0000000..0000000/'
) > $mxedir/src/${pkg}-${patch_name}.patch && \
echo "Generated ${mxedir}/src/${pkg}-${patch_name}.patch"