@@ -12,7 +12,6 @@ if "%~1" == "/h" (
12
12
13
13
exit /b
14
14
15
- :read_version
16
15
:: :===============================================================================
17
16
:: :read_version - Get the git.exe version
18
17
:: :.
@@ -34,6 +33,7 @@ exit /b
34
33
:: : GIT_VERSION_[GIT SCOPE] <out> Env variable containing Git semantic version string
35
34
:: :-------------------------------------------------------------------------------
36
35
36
+ :read_version
37
37
:: clear the variables
38
38
set GIT_VERSION_%~1 =
39
39
@@ -64,7 +64,6 @@ exit /b
64
64
65
65
exit /b
66
66
67
- :parse_version
68
67
:: :===============================================================================
69
68
:: :parse_version - Parse semantic version string 'x.x.x.x' and return the pieces
70
69
:: :.
@@ -89,6 +88,7 @@ exit /b
89
88
:: : [SCOPE]_BUILD <out> Scoped Build version.
90
89
:: :-------------------------------------------------------------------------------
91
90
91
+ :parse_version
92
92
:: process a `x.x.x.xxxx.x` formatted string
93
93
%print_debug% :parse_version " ARGV[1]=%~1 , ARGV[2]=%~2 "
94
94
@@ -111,9 +111,8 @@ exit /b
111
111
112
112
:endlocal_set_git_version
113
113
114
- :validate_version
115
114
:: :===============================================================================
116
- :: :validate_version - Validate semantic version string 'x.x.x.x'.
115
+ :: :validate_version - Validate semantic version string 'x.x.x.x'
117
116
:: :.
118
117
:: :include:
119
118
:: :.
@@ -129,6 +128,7 @@ exit /b
129
128
:: : [VERSION] <in> Semantic version String. Ex: 1.2.3.4
130
129
:: :-------------------------------------------------------------------------------
131
130
131
+ :validate_version
132
132
:: now parse the version information into the corresponding variables
133
133
%print_debug% :validate_version " ARGV[1]=%~1 , ARGV[2]=%~2 "
134
134
@@ -143,9 +143,8 @@ exit /b
143
143
)
144
144
exit /b
145
145
146
- :compare_versions
147
146
:: :===============================================================================
148
- :: :compare_version - Compare semantic versions return latest version.
147
+ :: :compare_version - Compare semantic versions and return latest version
149
148
:: :.
150
149
:: :include:
151
150
:: :.
@@ -161,6 +160,7 @@ exit /b
161
160
:: : [SCOPE2] <in> Example: VENDOR
162
161
:: :-------------------------------------------------------------------------------
163
162
163
+ :compare_versions
164
164
:: checks all major, minor, patch and build variables for the given arguments.
165
165
:: whichever binary that has the most recent version will be used based on the return code.
166
166
@@ -185,7 +185,7 @@ exit /b
185
185
endlocal & exit /b 0
186
186
187
187
:: :===============================================================================
188
- :: :is_git_shim
188
+ :: :is_git_shim - Check if the directory has a git.shim file
189
189
:: :.
190
190
:: :include:
191
191
:: :.
@@ -219,7 +219,7 @@ exit /b
219
219
exit /b
220
220
221
221
:: :===============================================================================
222
- :: :compare_git_versions
222
+ :: :compare_git_versions - Compare the user git version against the vendored version
223
223
:: :.
224
224
:: :include:
225
225
:: :.
@@ -262,7 +262,7 @@ exit /b
262
262
exit /b
263
263
264
264
:: :===============================================================================
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
266
266
:: :.
267
267
:: :include:
268
268
:: :.
@@ -278,5 +278,4 @@ exit /b
278
278
%lib_git% read_version USER " %test_dir% " 2 > nul
279
279
%print_debug% " :get_user_git_version" " get_user_git_version GIT_VERSION_USER: %GIT_VERSION_USER% "
280
280
%lib_git% validate_version USER %GIT_VERSION_USER%
281
- exit /b
282
-
281
+ exit /b
0 commit comments