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

Signature

mattt edited this page Jul 27, 2020 · 6 revisions

Signature

An action signature (e.g. for committers, taggers, etc).

public class Signature

Inheritance

Equatable, Hashable

Initializers

init(rawValue:)

init(rawValue: git_signature)

init(name:email:time:timeZone:)

Creates a signature with the specified name, email, time, and time zone.

public convenience init(name: String, email: String, time: Date = Date(), timeZone: TimeZone = TimeZone.current) throws

Parameters

  • name: - name: The name of the signer.
  • email: - email: The email of the signer.
  • time: - time: The time at which the action occurred.
  • timeZone: - timeZone: The time's corresponding time zone.

Properties

rawValue

var rawValue: git_signature

managed

var managed: Bool

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?

Methods

==(lhs:rhs:)

public static func ==(lhs: Signature, rhs: Signature) -> Bool

hash(into:)

public func hash(into hasher: inout Hasher)

Clone this wiki locally