Skip to main content

Class: WorkspaceGit

Local git state for a workspace.

Extends

  • BaseClient

Constructors

Constructor

new WorkspaceGit(ctx?, _id?): WorkspaceGit

Constructor is used for internal usage only, do not create object from it.

Parameters

ctx?

Context

_id?

ID

Returns

WorkspaceGit

Overrides

BaseClient.constructor

Methods

head(): GitRef

The checked-out HEAD of this workspace.

Returns

GitRef


id()

id(): Promise<ID>

A unique identifier for this WorkspaceGit.

Returns

Promise<ID>


uncommitted()

uncommitted(): Changeset

Uncommitted changes in this workspace, using the same rules as GitRepository.uncommitted.

Returns

Changeset