Re-apply patches if list changed

This commit is contained in:
Patrick Nicolas
2024-11-25 16:23:56 +01:00
parent d39004426e
commit b856df8638
4 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -5,12 +5,12 @@ if [ -d ".git" ] ; then
git config user.name > /dev/null || git config user.name "no name"
git config --local commit.gpgsign false
git checkout .
exec git am "$@"/*
exec git am "$@"
fi
# There is no reliable way to apply a patch and succeed if it was
# already applied. Just ignore errors...
for f in "$@"/* ; do
for f in "$@" ; do
patch -p1 --forward < "$f"
done