Skip to content

getAnnotatedCommitFromFetchHead

Creates a Annotated Commit from FETCH_HEAD.

Signature

ts
class Repository {
  getAnnotatedCommitFromFetchHead(
    branchName: string,
    remoteUrl: string,
    id: string,
  ): AnnotatedCommit;
}

Parameters

  • branchNamerequired · string

    Name of the remote branch.

  • remoteUrlrequired · string

    Url of the remote.

  • idrequired · string

    The commit object id of the remote branch.

Returns

  • AnnotatedCommit

    An Annotated Commit created from FETCH_HEAD .

Released under the MIT License.