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
Commit
mattt edited this page Sep 1, 2020
·
5 revisions
A commit object.
public final class Commit: Object
The repository containing the commit.
var owner: Repository
The tree containing the commit, if any.
var tree: Tree?
The parents of the commit.
var parents: [Commit]
The commit message, if any.
var message: String?
The signature of the author.
var author: Signature
The signature of the committer.
var committer: Signature
Calculates the number of unique revisions to another commit.
public func distance(to upstream: Commit) throws -> (ahead: Int, behind: Int)
- upstream: The upstream commit.
A tuple with the number of commits ahead
and behind
.
Determines whether the commit is a descendent of another commit.
public func isDescendent(of ancestor: Commit) throws -> Bool
- ancestor: The presumptive ancestor.
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