File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,10 @@ public class Git {
62
62
// First, check if we need to restrict the tag set to version-specific tags.
63
63
var knownVersions : [ Version : String ] = [ : ]
64
64
for versionSpecificKey in Versioning . currentVersionSpecificKeys {
65
- for tag in tags {
66
- if tag. hasSuffix ( versionSpecificKey) {
67
- let specifier = String ( tag. characters. dropLast ( versionSpecificKey. characters. count) )
68
- if let version = Version ( specifier) ?? Version . vprefix ( specifier) {
69
- knownVersions [ version] = tag
70
- }
65
+ for tag in tags where tag. hasSuffix ( versionSpecificKey) {
66
+ let specifier = String ( tag. characters. dropLast ( versionSpecificKey. characters. count) )
67
+ if let version = Version ( specifier) ?? Version . vprefix ( specifier) {
68
+ knownVersions [ version] = tag
71
69
}
72
70
}
73
71
Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ public struct SwiftVersion {
27
27
/// Build information, as an unstructured string.
28
28
public var buildIdentifier : String ?
29
29
30
- /// The major version number
30
+ /// The major component of the version number.
31
31
public var major : Int { return version. major }
32
+ /// The minor component of the version number.
32
33
public var minor : Int { return version. minor }
34
+ /// The patch component of the version number.
33
35
public var patch : Int { return version. patch }
34
36
35
37
/// The version as a readable string.
You can’t perform that action at this time.
0 commit comments