File size: 274 Bytes
f9f1a35
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@echo off



REM -- Echo the git commit hash.  If git isn't available for some reason,

REM -- output nothing instead.

git rev-parse HEAD >NUL 2>NUL && (
    git rev-parse HEAD
) || (
    echo none
)



REM -- Set ERRORLEVEL to 0 using this cryptic syntax.
(call )