@@ -12,7 +12,6 @@ if "%~1" == "/h" (
1212
1313exit /b
1414
15- :read_version
1615:: :===============================================================================
1716:: :read_version - Get the git.exe version
1817:: :.
@@ -34,6 +33,7 @@ exit /b
3433:: : GIT_VERSION_[GIT SCOPE] <out> Env variable containing Git semantic version string
3534:: :-------------------------------------------------------------------------------
3635
36+ :read_version
3737 :: clear the variables
3838 set GIT_VERSION_%~1 =
3939
@@ -64,7 +64,6 @@ exit /b
6464
6565 exit /b
6666
67- :parse_version
6867:: :===============================================================================
6968:: :parse_version - Parse semantic version string 'x.x.x.x' and return the pieces
7069:: :.
@@ -89,6 +88,7 @@ exit /b
8988:: : [SCOPE]_BUILD <out> Scoped Build version.
9089:: :-------------------------------------------------------------------------------
9190
91+ :parse_version
9292 :: process a `x.x.x.xxxx.x` formatted string
9393 %print_debug% :parse_version " ARGV[1]=%~1 , ARGV[2]=%~2 "
9494
@@ -111,9 +111,8 @@ exit /b
111111
112112:endlocal_set_git_version
113113
114- :validate_version
115114:: :===============================================================================
116- :: :validate_version - Validate semantic version string 'x.x.x.x'.
115+ :: :validate_version - Validate semantic version string 'x.x.x.x'
117116:: :.
118117:: :include:
119118:: :.
@@ -129,6 +128,7 @@ exit /b
129128:: : [VERSION] <in> Semantic version String. Ex: 1.2.3.4
130129:: :-------------------------------------------------------------------------------
131130
131+ :validate_version
132132 :: now parse the version information into the corresponding variables
133133 %print_debug% :validate_version " ARGV[1]=%~1 , ARGV[2]=%~2 "
134134
@@ -143,9 +143,8 @@ exit /b
143143 )
144144 exit /b
145145
146- :compare_versions
147146:: :===============================================================================
148- :: :compare_version - Compare semantic versions return latest version.
147+ :: :compare_version - Compare semantic versions and return latest version
149148:: :.
150149:: :include:
151150:: :.
@@ -161,6 +160,7 @@ exit /b
161160:: : [SCOPE2] <in> Example: VENDOR
162161:: :-------------------------------------------------------------------------------
163162
163+ :compare_versions
164164 :: checks all major, minor, patch and build variables for the given arguments.
165165 :: whichever binary that has the most recent version will be used based on the return code.
166166
@@ -185,7 +185,7 @@ exit /b
185185 endlocal & exit /b 0
186186
187187:: :===============================================================================
188- :: :is_git_shim
188+ :: :is_git_shim - Check if the directory has a git.shim file
189189:: :.
190190:: :include:
191191:: :.
@@ -219,7 +219,7 @@ exit /b
219219 exit /b
220220
221221:: :===============================================================================
222- :: :compare_git_versions
222+ :: :compare_git_versions - Compare the user git version against the vendored version
223223:: :.
224224:: :include:
225225:: :.
@@ -262,7 +262,7 @@ exit /b
262262 exit /b
263263
264264:: :===============================================================================
265- :: :get_user_git_version - get the version information for the user provided git binary
265+ :: :get_user_git_version - Get the version information for the user provided git binary
266266:: :.
267267:: :include:
268268:: :.
@@ -278,5 +278,4 @@ exit /b
278278 %lib_git% read_version USER " %test_dir% " 2 > nul
279279 %print_debug% " :get_user_git_version" " get_user_git_version GIT_VERSION_USER: %GIT_VERSION_USER% "
280280 %lib_git% validate_version USER %GIT_VERSION_USER%
281- exit /b
282-
281+ exit /b
0 commit comments