| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final MergeCommand. | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MergeConfig | Returns: merge configuration for the current branch of the repositorya repo)org. object.Get merge configuration for the current branch of the repository |
| public MergeCommand. | Returns: the fast forward mode configured for this branchGet the fast forward mode configured for this branch |
| private static MergeCommand. | |
| private static String[] | |
| public static final Config. | Returns: a parser for use withorg.short branch name to get the configuration for, as returned
e.g. by branch)org.Get a parser for use with
|
| public boolean | Returns: false if --no-commit is configured for this branch,
true otherwise (even if --squash is configured)Whether |
| private static boolean | |
| public boolean | Returns: true if merges into this branch are configured to be squash merges, false otherwiseWhether merges into this branch are configured to be squash merges, false otherwise |
| commit | back to summary |
|---|---|
| private final boolean commit | |
| fastForwardMode | back to summary |
|---|---|
| private final MergeCommand. | |
| squash | back to summary |
|---|---|
| private final boolean squash | |
| MergeConfig | back to summary |
|---|---|
| private MergeConfig(String branch, Config config) | |
| MergeConfig | back to summary |
|---|---|
| private MergeConfig() | |
| getConfigForCurrentBranch | back to summary |
|---|---|
| public static MergeConfig getConfigForCurrentBranch(Repository repo) Get merge configuration for the current branch of the repository
| |
| getFastForwardMode | back to summary |
|---|---|
| public MergeCommand. Get the fast forward mode configured for this branch
| |
| getFastForwardMode | back to summary |
|---|---|
| private static MergeCommand. | |
| getMergeOptions | back to summary |
|---|---|
| private static String[] getMergeOptions(String branch, Config config) | |
| getParser | back to summary |
|---|---|
| public static final Config. Get a parser for use with
| |
| isCommit | back to summary |
|---|---|
| public boolean isCommit() Whether
| |
| isMergeConfigOptionSet | back to summary |
|---|---|
| private static boolean isMergeConfigOptionSet(String optionToLookFor, String[] mergeOptions) | |
| isSquash | back to summary |
|---|---|
| public boolean isSquash() Whether merges into this branch are configured to be squash merges, false otherwise
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public MergeConfig | parse(Config
the configuration to read values from. cfg)Implements org. Create a model object from a configuration. |
| branch | back to summary |
|---|---|
| private final String branch | |
| MergeConfigSectionParser | back to summary |
|---|---|
| public MergeConfigSectionParser(String branch) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parse | back to summary |
|---|---|
| public MergeConfig parse(Config cfg) Implements org. Doc from org. Create a model object from a configuration.
| |