milvus/githooks/pre-commit/fmt

10 lines
175 B
Plaintext
Raw Normal View History

#! /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