添加 git 提交前自动格式化配置
This commit is contained in:
6
Makefile
6
Makefile
@@ -44,4 +44,8 @@ test:
|
||||
cmake --build $(BUILD_DIR)
|
||||
ctest --test-dir $(BUILD_DIR)
|
||||
|
||||
.PHONY: clean run wm prepare build install uninstall reinstall test
|
||||
install-hooks:
|
||||
chmod +x $(MAKEFILE_DIR).githooks/pre-commit
|
||||
git -C $(MAKEFILE_DIR) config core.hooksPath $(MAKEFILE_DIR).githooks
|
||||
|
||||
.PHONY: clean run wm prepare build install uninstall reinstall test install-hooks
|
||||
|
||||
Reference in New Issue
Block a user