Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Commit f3b37c3

Browse files
committed
Conform Signature to CustomStringConvertible
1 parent 7372d51 commit f3b37c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/Git/Signature.swift

+8
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ extension Signature: Hashable {
8282
}
8383
}
8484

85+
// MARK: - CustomStringConvertible
86+
87+
extension Signature: CustomStringConvertible {
88+
public var description: String {
89+
return "\(name) <\(email)>"
90+
}
91+
}
92+
8593
// MARK: - Codable
8694

8795
extension Signature: Codable {

0 commit comments

Comments
 (0)