Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#unix-one-liners: fix lint and tests throughout history
(
(hlint **/*.hs >/dev/null 2>/dev/null || (echo "Lint problems"; false)) &&
(stack test >/dev/null 2>/dev/null || (echo "Test failures"; false)) &&
GIT_EDITOR=true git rebase --continue
) || (
$EDITOR $(hlint **/*.hs
| grep -F '.hs'
| sed 's/:.*//'
| uniq) &&
stack test &&
git add -u &&
(GIT_EDITOR=true git rebase --continue || git mergetool) &&
git clean -f
)
@wchargin

This comment has been minimized.

Show comment
Hide comment
@wchargin

wchargin Aug 29, 2016

usage: git rebase --interactive --root, change all the picks to edits, and keep spamming this command until you get the "Successfully rebased" message

Owner

wchargin commented Aug 29, 2016

usage: git rebase --interactive --root, change all the picks to edits, and keep spamming this command until you get the "Successfully rebased" message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment