/
githubmirror
/
x64dbg
Обзор
Документация
Войти
/
githubmirror
/
x64dbg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
development
.github/format/install-git-hook.bat
20 строк
549 B
Duncan Ogilvie
Fix clang-cl compilation and various warnings
25 янв 2026, 22:26
25 янв 2026, 22:26
f150781
Код
Авторство
О чём код?
@echo off git config core.autocrlf false REM Get the git directory path (works for worktrees too) for /f "delims=" %%i in ('git rev-parse --git-dir') do set GIT_DIR=%%i REM Replace forward slashes with backslashes set GIT_DIR=%GIT_DIR:/=\% set PRE_COMMIT_HOOK=%GIT_DIR%\hooks\pre-commit REM Create the hooks directory if it doesn't exist if not exist "%GIT_DIR%\hooks" ( mkdir "%GIT_DIR%\hooks" ) if not exist "%PRE_COMMIT_HOOK%" ( echo Installing pre-commit hook... copy "%~dp0pre-commit" "%PRE_COMMIT_HOOK%" )