This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Signature
mattt edited this page Sep 2, 2020
·
6 revisions
An action signature (e.g. for committers, taggers, etc).
public struct Signature
Codable
, CustomStringConvertible
, Equatable
, Hashable
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
- 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.
public init(from decoder: Decoder) throws
The name of the signer.
var name: String
The email of the signer.
var email: String
The time at which the action occurred.
var time: Date
The time's corresponding time zone.
var timeZone: TimeZone?
var description: String
public static func `default`(for repository: Repository) throws -> Signature
public static func ==(lhs: Signature, rhs: Signature) -> Bool
public func hash(into hasher: inout Hasher)
public func encode(to encoder: Encoder) throws
Generated at 2020-09-02T17:06:43+0000 using swift-doc 1.0.0-beta.4.
Types
- Blob
- Branch
- Commit
- Credentials
- Error
- Message
- Note
- Object
- Object.ID
- Reference
- Reference.Format
- Remote
- Remote.Fetch
- Remote.Fetch.Configuration
- Remote.Fetch.TagFollowing
- Repository
- Repository.Attributes
- Repository.Attributes.Value
- Repository.Checkout
- Repository.Checkout.Configuration
- Repository.Checkout.ConflictResolution
- Repository.Checkout.Strategy
- Repository.Clone
- Repository.Clone.Configuration
- Repository.Clone.Local
- Repository.Head
- Repository.Index
- Repository.Index.Entry
- Repository.Index.Stage
- RevisionSortingOptions
- Signature
- Tag
- Tag.Annotation
- Tree
- Tree.Entry