milvus/githooks/pre-commit/fmt
quicksilver ca89ece576 Fix go format bug
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
2021-01-05 14:20:45 +08:00

10 lines
175 B
Bash
Executable File

#! /bin/bash
GO_DIFF_FILES=""
while read -r line; do
export GO_DIFF_FILES="$GO_DIFF_FILES $line"
done <<< "$(git diff --name-only --diff-filter=d HEAD "*.go")"
make fmt