-
-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xrCore: build information (branch, commit hash, CI, CI build ID, buil…
…der) You will see at least branch and commit hash, other info will be shown depending on it's availability
- Loading branch information
1 parent
cc2474f
commit e06400e
Showing
4 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
xrCore/.GitInfo.hpp | ||
|
||
# exclude binaries and temporary files | ||
ipch/ | ||
packages/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
where git >nul 2>nul | ||
if %errorLevel% neq 0 ( | ||
goto :EOF | ||
) | ||
|
||
echo | set /p dummyName=#define GIT_INFO_CURRENT_COMMIT > .GitInfo.hpp | ||
git rev-parse --verify HEAD >> .GitInfo.hpp | ||
|
||
echo | set /p dummyName=#define GIT_INFO_CURRENT_BRANCH >> .GitInfo.hpp | ||
git rev-parse --abbrev-ref HEAD >> .GitInfo.hpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters