mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
Synthesize Equatable conformance for Signature
This commit is contained in:
parent
c452b80da3
commit
df7bd3c2a3
@ -52,6 +52,7 @@ opt_in_rules:
|
|||||||
- redundant_nil_coalescing
|
- redundant_nil_coalescing
|
||||||
- redundant_type_annotation
|
- redundant_type_annotation
|
||||||
- sorted_first_last
|
- sorted_first_last
|
||||||
|
- static_operator
|
||||||
- strict_fileprivate
|
- strict_fileprivate
|
||||||
- switch_case_on_newline
|
- switch_case_on_newline
|
||||||
- toggle_bool
|
- toggle_bool
|
||||||
|
|||||||
@ -83,13 +83,6 @@ extension Signature: Hashable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public func == (lhs: Signature, rhs: Signature) -> Bool {
|
|
||||||
return lhs.name == rhs.name
|
|
||||||
&& lhs.email == rhs.email
|
|
||||||
&& lhs.time == rhs.time
|
|
||||||
&& lhs.timeZone == rhs.timeZone
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A git commit.
|
/// A git commit.
|
||||||
public struct Commit: ObjectType, Hashable {
|
public struct Commit: ObjectType, Hashable {
|
||||||
public static let type = GIT_OBJ_COMMIT
|
public static let type = GIT_OBJ_COMMIT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user