Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
mattt edited this page Sep 1, 2020 · 5 revisions

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)
Clone this wiki locally