Skip to content

getId

Lookup a tree entry by SHA value.

Signature

ts
class Tree {
  getId(id: string): TreeEntry | null;
}

Parameters

  • idrequired · string

    SHA value.

Returns

  • null | TreeEntry

    Tree entry with the given ID(SHA1).

Released under the MIT License.