-
Why we use git log with format to get the Current commit? But not use I find the <!-- Under Unix, we don't double %% the format. That only works on Windows. -->
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
<_ShortShaFormat>%%h</_ShortShaFormat>
<_LongShaFormat>%%H</_LongShaFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
<_ShortShaFormat>%h</_ShortShaFormat>
<_LongShaFormat>%H</_LongShaFormat>
</PropertyGroup> Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
kzu
Jun 4, 2024
Replies: 1 comment 1 reply
-
Would gladly take a PR with the simpler version :) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kzu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would gladly take a PR with the simpler version :)