public static enum GitRepository.FastForwardOption extends Enum<GitRepository.FastForwardOption>
GitClient.merge(java.lang.String, org.netbeans.libs.git.GitRepository.FastForwardOption, org.netbeans.libs.git.progress.ProgressMonitor)
.
To get the repository's default value, get it with GitRepository.getDefaultFastForwardOption()
.Enum Constant and Description |
---|
FAST_FORWARD
Merge will not create a new commit if possible and only update the
branch reference to the merged commit.
|
FAST_FORWARD_ONLY
Merge will fail if fast forward is impossible, no merge commit will
be created under any circumstances.
|
NO_FAST_FORWARD
Will always create a merge commit even if fast forward were possible.
|
Modifier and Type | Method and Description |
---|---|
static GitRepository.FastForwardOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GitRepository.FastForwardOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GitRepository.FastForwardOption FAST_FORWARD
public static final GitRepository.FastForwardOption FAST_FORWARD_ONLY
public static final GitRepository.FastForwardOption NO_FAST_FORWARD
public static GitRepository.FastForwardOption[] values()
public static GitRepository.FastForwardOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null