3# Remember to link me to .git/hooks/pre-commit
7files=$((git diff --cached --name-only --diff-filter=ACMR | grep -Ei "\.hs$") || true)
8if [ ! -z "${files}" ]; then
10 echo "$files" | xargs ormolu --mode inplace
11 git add $(echo "$files" | paste -s -d " " -)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list