mirror of
https://github.com/VSCodium/vscodium
synced 2024-10-30 03:47:40 +00:00
20 lines
341 B
Bash
Executable file
20 lines
341 B
Bash
Executable file
#!/bin/bash
|
|
|
|
FILE="../patches/${1}.patch"
|
|
|
|
cd vscode || { echo "'vscode' dir not found"; exit 1; }
|
|
|
|
git add .
|
|
git reset -q --hard HEAD
|
|
|
|
if [[ -f "${FILE}" ]]; then
|
|
git apply --reject "${FILE}"
|
|
fi
|
|
|
|
read -p "Press any key when the conflict have been resolved..." -n1 -s
|
|
|
|
git diff -U1 > "${FILE}"
|
|
|
|
cd ..
|
|
|
|
echo "The patch has been generated."
|