Debian Codegraph @

deps/winpty/src/shared/GetCommitHash.bat

raw
1 @echo off
2
3 REM -- Echo the git commit hash. If git isn't available for some reason,
4 REM -- output nothing instead.
5
6 git rev-parse HEAD >NUL 2>NUL && (
7 git rev-parse HEAD
8 ) || (
9 echo none
10 )
11
12 REM -- Set ERRORLEVEL to 0 using this cryptic syntax.
13 (call )