Skip to content

getTag

Lookup a tag object by prefix hash from the repository.

Signature

ts
class Repository {
  getTag(oid: string): Tag;
}

Parameters

  • oidrequired · string

    Prefix hash.

Errors

  • Error

    Throws error if tag does not exist.

Released under the MIT License.