Ignore third_party and Godeps in git precommit hooks.

This commit is contained in:
Anthony Yeh 2015-01-28 15:42:47 -08:00
Родитель 2f9d3d05e8
Коммит 86071decf6
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -9,7 +9,7 @@
# it has execute permissions.
#
# This script does not handle file names that contain spaces.
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$')
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '^go/.*\.go$')
[ -z "$gofiles" ] && exit 0
unformatted=$(goimports -l=true $gofiles 2>&1 | awk -F: '{print $1}')

Просмотреть файл

@ -15,7 +15,7 @@ if [ -z "$(which golint)" ]; then
exit 1
fi
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$')
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '^go/.*\.go$')
errors=

Просмотреть файл

@ -9,7 +9,7 @@
# it has execute permissions.
#
# This script does not handle file names that contain spaces.
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$')
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '^go/.*\.go$')
# If any checks are found to be useless, they can be disabled here.
# See the output of "go tool vet" for a list of flags.