mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-07-28 23:18:39 +00:00
- Album resolvers has been refactored to make it easier to test, this is done by converting some of the resolvers to actions. - The album tests has been rewritten (and simplified) to accommodate the changes.
9 lines
220 B
Bash
9 lines
220 B
Bash
#!/bin/sh
|
|
|
|
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep --silent '.go$')
|
|
[ -z "$gofiles" ] && exit 0
|
|
|
|
# Automatically format go code, exit on error
|
|
echo "Formatting staged go files"
|
|
gofmt -w $gofiles
|