Files
Nourepide-ComfyUI-Allor/resources/info.bat
T
2023-12-15 21:22:11 +03:00

8 lines
300 B
Batchfile

@echo off
for /f %%i in ('git rev-parse --abbrev-ref HEAD') do set branch=%%i
for /f "delims=" %%i in ('git log -1 --pretty=%%B') do set commit=%%i
for /f %%i in ('git rev-parse --short HEAD') do set hex=%%i
echo {\"branch\": \"%branch%\", \"commit\": \"%commit%\", \"hex\": \"%hex%\"} > info.json