Skip to content

findObject ​

Lookup a reference to one of the objects in a repository.

Signature ​

ts
class Repository {
  findObject(oid: string): GitObject | null;
}

Parameters ​

  • oidrequired · string

    Git object ID(SHA1) to lookup.

Returns ​

  • null | GitObject

    Git object. Returns null if the object does not exist.

Released under the MIT License.