GitRepo.state

Return the current state this repository, e.g. whether an operation such as merge is in progress.

struct GitRepo
@property
state
(
)

Examples

// todo: test all states
auto repo = initRepo(_userRepo, OpenBare.yes);
scope(exit) rmdirRecurse(_userRepo);
assert(repo.state == RepoState.none);

Meta