From 135d471a7e45e57c7dea72d7e2f973e2fb5d1e4a Mon Sep 17 00:00:00 2001 From: Sean Fausett Date: Mon, 20 May 2024 19:02:40 +1200 Subject: [PATCH] Fix fast up-to-date-check Add git info specific inputs and outputs used for incremental builds. --- src/GitInfo/build/GitInfo.targets | 45 +++++++++++++------------------ 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/src/GitInfo/build/GitInfo.targets b/src/GitInfo/build/GitInfo.targets index 0f82e3c..b3b7437 100644 --- a/src/GitInfo/build/GitInfo.targets +++ b/src/GitInfo/build/GitInfo.targets @@ -152,9 +152,6 @@ <_GitIsDirtyFile>$(GitCachePath)GitIsDirty.cache - - - <_GitHeadFile>$(GitCachePath)GitHead.cache @@ -359,20 +356,21 @@ + <_GitHead>$([System.IO.Path]::Combine('$(GitDir)', 'HEAD')) + <_GitLogsHead>$([System.IO.Path]::Combine('$(GitDir)', 'logs', 'HEAD')) <_GitPackedRefs>$([System.IO.Path]::Combine('$(GitDir)', 'packed-refs')) - <_GitInput Include="$([System.IO.Path]::Combine('$(GitDir)', 'HEAD'))" /> - <_GitInput Include="$(GitVersionFile)" Condition="Exists('$(GitVersionFile)')" /> - <_GitInput Include="$(_GitIsDirtyFile)" Condition="Exists('$(_GitIsDirtyFile)')" /> + <_GitInput Include="$(GitVersionFile)" Condition="Exists('$(GitVersionFile)')" Utdc="true" /> + <_GitInput Include="$(_GitIsDirtyFile)" Condition="Exists('$(_GitIsDirtyFile)')" Utdc="true" /> + <_GitInput Include="$(_GitHead)" Condition="Exists('$(_GitHead)')" Utdc="true" /> + <_GitInput Include="$(_GitLogsHead)" Condition="Exists('$(_GitLogsHead)')" Utdc="true" /> + <_GitInput Include="$(_GitPackedRefs)" Condition="Exists('$(_GitPackedRefs)')" Utdc="true" /> - - - - + - + @@ -981,23 +979,18 @@ - - - - - + + + + + + - - - - - - - - + + + +