Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
Apparently this is the correct regex.
Dieser Commit ist enthalten in:
Ursprung
f23a5fd90a
Commit
3b88df5a42
@ -5,7 +5,7 @@ echo "Rebuilding patch files from current fork state..."
|
|||||||
function cleanupPatches {
|
function cleanupPatches {
|
||||||
cd $1
|
cd $1
|
||||||
for patch in *.patch; do
|
for patch in *.patch; do
|
||||||
lines=$(git diff --staged $patch | grep -E "^(\+|\-)" | grep -Ev "(From [a-z0-9]{32,}|--- a|+++ b)" | wc -l)
|
lines=$(git diff --staged $patch | grep -E "^(\+|\-)" | grep -Ev "(From [a-z0-9]{32,}|\-\-\- a|\+\+\+ b|.index)" | wc -l)
|
||||||
if [ "$lines" == "0" ] ; then
|
if [ "$lines" == "0" ] ; then
|
||||||
git reset HEAD $patch >/dev/null
|
git reset HEAD $patch >/dev/null
|
||||||
git checkout -- $patch >/dev/null
|
git checkout -- $patch >/dev/null
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren