Skip to content

state

Returns the current state of this repository.

Signature

ts
class Repository {
  state(): RepositoryState;
}

Returns

  • RepositoryState

    The current state of this repository.

    Available states are Clean, Merge, Revert, RevertSequence, CherryPick,
    CherryPickSequence, Bisect, Rebase, RebaseInteractive, RebaseMerge,
    ApplyMailbox, ApplyMailboxOrRebase.

Released under the MIT License.