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

Object

A blob, commit, tree, or tag annotation.

public class Object

Seealso: `Blob`

Seealso: `Commit`

Seealso: `Tree`

Seealso: `Tag.Revision`

Inheritance

Equatable, Hashable

Initializers

init(_:)

required init(_ pointer: OpaquePointer)

Properties

type

var type: git_object_t

pointer

var pointer: OpaquePointer!

managed

var managed: Bool

id

The object's ID.

var id: ID

owner

The repository containing the object.

var owner: Repository

note

The note attached to the object, if any.

var note: Note?

Methods

type(of:)

class func type(of pointer: OpaquePointer) -> Object.Type?

==(lhs:rhs:)

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

hash(into:)

public func hash(into hasher: inout Hasher)

Clone this wiki locally