Object - SwiftDocOrg/Git GitHub Wiki

Object

A blob, commit, tree, or tag annotation.

public class Object

Inheritance

Equatable, Hashable

Properties

owner

The repository containing the object.

var owner:​ Repository

id

The object's ID.

var id:​ ID

note

The note attached to the object, if any.

var note:​ Note?

Methods

addNote(_:​author:​committer:​force:​)

@discardableResult public func addNote(_ message:​ String, author:​ Signature? = nil, committer:​ Signature? = nil, force:​ Bool = false) throws -> Note?

==(lhs:​rhs:​)

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

hash(into:​)

public func hash(into hasher:​ inout Hasher)