| Modifier and Type | Field and Description |
|---|---|
| public static final RepositoryState | APPLY
An unfinished apply. |
| public static final RepositoryState | BARE
Has no work tree and cannot be used for normal editing. |
| public static final RepositoryState | BISECTING
Bisecting being done. |
| public static final RepositoryState | CHERRY_PICKING
An unfinished cherry-pick. |
| public static final RepositoryState | CHERRY_PICKING_RESOLVED
A cherry-pick where all conflicts have been resolved. |
| public static final RepositoryState | MERGING
An unfinished merge. |
| public static final RepositoryState | MERGING_RESOLVED
An merge where all conflicts have been resolved. |
| public static final RepositoryState | REBASING
An unfinished rebase or am. |
| public static final RepositoryState | REBASING_INTERACTIVE
An unfinished interactive rebase. |
| public static final RepositoryState | REBASING_MERGE
An unfinished rebase with merge. |
| public static final RepositoryState | REBASING_REBASING
An unfinished rebase. |
| public static final RepositoryState | REVERTING
An unfinished revert. |
| public static final RepositoryState | REVERTING_RESOLVED
A revert where all conflicts have been resolved. |
| public static final RepositoryState | SAFE
A safe state for working normally |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | Returns: true if reset to another HEAD is considered SAFEWhether reset to another HEAD is considered SAFE |
| public abstract String | Returns: a human readable description of the state.Get a human readable description of the state |
| public abstract boolean | |
| public static RepositoryState | |
| public static RepositoryState[] |
| APPLY | back to summary |
|---|---|
| public static final RepositoryState APPLY An unfinished apply. Must resolve, skip or abort before normal work can take place | |
| BARE | back to summary |
|---|---|
| public static final RepositoryState BARE Has no work tree and cannot be used for normal editing. | |
| BISECTING | back to summary |
|---|---|
| public static final RepositoryState BISECTING Bisecting being done. Normal work may continue but is discouraged | |
| CHERRY_PICKING | back to summary |
|---|---|
| public static final RepositoryState CHERRY_PICKING An unfinished cherry-pick. Must resolve or reset before continuing normally | |
| CHERRY_PICKING_RESOLVED | back to summary |
|---|---|
| public static final RepositoryState CHERRY_PICKING_RESOLVED A cherry-pick where all conflicts have been resolved. The index does not contain any unmerged paths. | |
| MERGING | back to summary |
|---|---|
| public static final RepositoryState MERGING An unfinished merge. Must resolve or reset before continuing normally | |
| MERGING_RESOLVED | back to summary |
|---|---|
| public static final RepositoryState MERGING_RESOLVED An merge where all conflicts have been resolved. The index does not contain any unmerged paths. | |
| REBASING | back to summary |
|---|---|
| public static final RepositoryState REBASING An unfinished rebase or am. Must resolve, skip or abort before normal work can take place | |
| REBASING_INTERACTIVE | back to summary |
|---|---|
| public static final RepositoryState REBASING_INTERACTIVE An unfinished interactive rebase. Must resolve, skip or abort before normal work can take place | |
| REBASING_MERGE | back to summary |
|---|---|
| public static final RepositoryState REBASING_MERGE An unfinished rebase with merge. Must resolve, skip or abort before normal work can take place | |
| REBASING_REBASING | back to summary |
|---|---|
| public static final RepositoryState REBASING_REBASING An unfinished rebase. Must resolve, skip or abort before normal work can take place | |
| REVERTING | back to summary |
|---|---|
| public static final RepositoryState REVERTING An unfinished revert. Must resolve or reset before continuing normally | |
| REVERTING_RESOLVED | back to summary |
|---|---|
| public static final RepositoryState REVERTING_RESOLVED A revert where all conflicts have been resolved. The index does not contain any unmerged paths. | |
| SAFE | back to summary |
|---|---|
| public static final RepositoryState SAFE A safe state for working normally | |
| RepositoryState | back to summary |
|---|---|
| private RepositoryState() | |
| canAmend | back to summary |
|---|---|
| public abstract boolean canAmend() Whether amending is considered SAFE
| |
| canCheckout | back to summary |
|---|---|
| public abstract boolean canCheckout() Whether checkout can be done.
| |
| canCommit | back to summary |
|---|---|
| public abstract boolean canCommit() Whether we can commit
| |
| canResetHead | back to summary |
|---|---|
| public abstract boolean canResetHead() Whether reset to another HEAD is considered SAFE
| |
| getDescription | back to summary |
|---|---|
| public abstract String getDescription() Get a human readable description of the state
| |
| isRebasing | back to summary |
|---|---|
| public abstract boolean isRebasing() Whether a rebase is in progress
| |
| valueOf | back to summary |
|---|---|
| public static RepositoryState valueOf(String name) | |
| values | back to summary |
|---|---|
| public static RepositoryState[] values() | |