Increase diff stability

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2023-09-22 02:57:13 +10:00
parent 8a3c8cfcd4
commit e903417936
27 changed files with 162 additions and 170 deletions

View File

@@ -42,7 +42,7 @@ do
strip_cr "$nms/$file" > /dev/null
strip_cr "$cb/$file" > /dev/null
outName=$(echo nms-patches/"$(echo $file | cut -d. -f1)".patch)
patchNew=$(diff -u --label a/$file "$nms/$file" --label b/$file "$cb/$file" || true)
patchNew=$(diff -u --minimal --label a/$file "$nms/$file" --label b/$file "$cb/$file" || true)
if [ -f "$outName" ]
then
patchCut=$(echo "$patchNew" | tail -n +3)