From f14691a591ecd88b0287b2be1a3c66bda32c1121 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 17 Oct 2017 10:20:27 -0500 Subject: Add git commit to log --- hakchi_gui.csproj | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'hakchi_gui.csproj') diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj index a1e10353..84dda3b4 100644 --- a/hakchi_gui.csproj +++ b/hakchi_gui.csproj @@ -2691,8 +2691,17 @@ - - + echo. > NUL 2> "$(ProjectDir)commit.txt" + +git --version && ( + for /f %25%25i in ('git rev-parse --short HEAD') do ( + git diff-index --quiet HEAD -- && ( + echo|set /p="%25%25i" >> "$(ProjectDir)commit.txt" + ) || ( + echo|set /p="%25%25i (dirty)" >> "$(ProjectDir)commit.txt" + ) + ) +) || SET ERRORLEVEL=0 if exist languages rd /S /Q languages -- cgit v1.2.3 From be0d7035ee248144600f180c5c9182b634ca1ce5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 17 Oct 2017 10:40:42 -0500 Subject: Small fix --- hakchi_gui.csproj | 1 + 1 file changed, 1 insertion(+) (limited to 'hakchi_gui.csproj') diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj index 84dda3b4..b0df77b3 100644 --- a/hakchi_gui.csproj +++ b/hakchi_gui.csproj @@ -2697,6 +2697,7 @@ git --version && ( for /f %25%25i in ('git rev-parse --short HEAD') do ( git diff-index --quiet HEAD -- && ( echo|set /p="%25%25i" >> "$(ProjectDir)commit.txt" + SET ERRORLEVEL=0 ) || ( echo|set /p="%25%25i (dirty)" >> "$(ProjectDir)commit.txt" ) -- cgit v1.2.3