Signature - SwiftDocOrg/Git GitHub Wiki
Signature
An action signature (e.g. for committers, taggers, etc).
public struct Signature
Inheritance
Codable, CustomStringConvertible, Equatable, Hashable
Initializers
init(name:βemail:βtime:βtimeZone:β)
Creates a signature with the specified name, email, time, and time zone.
public init(name:β String, email:β String, time:β Date = Date(), timeZone:β TimeZone = TimeZone.current) throws
Parameters
- name:β The name of the signer.
- email:β The email of the signer.
- time:β The time at which the action occurred.
- timeZone:β The time's corresponding time zone.
init(from:β)
public init(from decoder:β Decoder) throws
Properties
name
The name of the signer.
var name:β String
email
The email of the signer.
var email:β String
time
The time at which the action occurred.
var time:β Date
timeZone
The time's corresponding time zone.
var timeZone:β TimeZone?
description
var description:β String
Methods
`default`(for:β)
public static func `default`(for repository:β Repository) throws -> Signature
==(lhs:βrhs:β)
public static func ==(lhs:β Signature, rhs:β Signature) -> Bool
hash(into:β)
public func hash(into hasher:β inout Hasher)
encode(to:β)
public func encode(to encoder:β Encoder) throws