Skip to content

Instantly share code, notes, and snippets.

@FaustXVI
Created November 13, 2018 15:46
Show Gist options
  • Save FaustXVI/c8e66a2b22c7ecafddc3b525ae233ace to your computer and use it in GitHub Desktop.
Save FaustXVI/c8e66a2b22c7ecafddc3b525ae233ace to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
function test() {
runhaskell FiboSpecs.hs
}
function commit() {
git add .
git commit --squash=lastRed
}
function revert() {
git reset --hard
git clean -f
}
test && commit || revert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment