Last active
February 4, 2021 20:57
-
-
Save coelhucas/db27169f9bd8e1a3d7181ff2a1aef698 to your computer and use it in GitHub Desktop.
Gipply takes an URL to a diff and applies with a git apply. Helps to quickly customize dwm, for instance.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
url="$1" | |
# Check if received parameter | |
if [ -z "$url" ] | |
then | |
echo "URL to apply .diff must be supplied" | |
exit | |
fi | |
echo "Applying ${url}..." | |
curl "$url" | git apply -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment