Skip to content

Instantly share code, notes, and snippets.

@coelhucas
Last active February 4, 2021 20:57
Show Gist options
  • Save coelhucas/db27169f9bd8e1a3d7181ff2a1aef698 to your computer and use it in GitHub Desktop.
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.
#!/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