Rebase command. It has setters for all
supported options and arguments of this command and a call() method
to finally execute the command. Each instance of this class should only be
used for one invocation of the command (means: one call to call())
| Modifier and Type | Class and Description |
|---|---|
| public static interface | RebaseCommand.
Allows to configure the interactive rebase process steps and to modify commit messages. |
| public static interface | RebaseCommand.
Extends |
| public static enum | RebaseCommand.
The available operations |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private CommitConfig | |
| private ContentMergeStrategy | |
| private static final String | CURRENT_COMMIT
File containing the current commit(s) to cherry pick when --rebase-merges is used. |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private RebaseCommand. | |
| private boolean | |
| private static final String | |
| private static final String | |
| private static final String | |
| private ProgressMonitor | |
| private RevCommit | |
| private static final String | |
| private static final String | |
| private RebaseCommand. | |
| private static final String | |
| private boolean | |
| private static final String | |
| private static final String | REBASE_APPLY
The name of the "rebase-apply" folder for non-interactive rebases. |
| private static final String | |
| private static final String | REBASE_HEAD_LEGACY
Pre git 1.7.6 file name for |
| public static final String | REBASE_MERGE
The name of the "rebase-merge" folder for interactive rebases. |
| private final RebaseCommand. | |
| private static final String | |
| private static final String | REWRITTEN
The folder containing the hashes of (potentially) rewritten commits when --rebase-merges is used. |
| private boolean | |
| public static final String | STOPPED_SHA
The name of the "stopped-sha" file |
| private MergeStrategy | |
| private RevCommit | |
| private String | |
| private final RevWalk |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private RebaseResult | |
| private void | |
| private boolean | |
| private List | |
| public RebaseResult | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private boolean | |
| private RevCommit | |
| private void | |
| private void | |
| private RebaseResult | |
| private RebaseResult | |
| private RebaseResult | |
| private String | |
| private RevCommit | |
| private RevCommit | doSquashFixup(boolean isSquash, RevCommit commitToPick, boolean isLast, File messageFixup, File messageSquash)
|
| private String | editCommitMessage(boolean[] doChangeId, String message, CommitConfig.
|
| private RebaseResult | |
| private Ref | |
| private static String | |
| private List | |
| private static String | |
| private ObjectId | |
| private String | |
| private RebaseResult | |
| private void | |
| private boolean | |
| private PersonIdent | |
| pack-priv PersonIdent | |
| pack-priv static int | Returns: the count of squashed messages in the given stringthe squashed commit message to be parsed currSquashMessage)Parse the count from squashed commit messages |
| private void | popSteps(int
number of steps to remove numSteps)Removes the number of lines given in the parameter from the
|
| private RebaseResult | |
| private String | |
| private void | |
| public RebaseCommand | Returns: thisEnable interactive rebase Does not stop after initialization of interactive rebase. |
| public RebaseCommand | Returns: this instanceif stopAfterRebaseInteractiveInitialization)true the rebase stops after initializationEnable interactive rebase
If stopAfterRebaseInteractiveInitialization is |
| public RebaseCommand | Returns: thisthe strategy)ContentMergeStrategy to be usedSets the content merge strategy to use if the
|
| public RebaseCommand | Returns: thisthe operation to perform operationSet the operation to execute during rebase |
| public RebaseCommand | Returns: thistrue to re-create merges during rebase. Defaults to
false, a flattening rebase.Whether to preserve merges during rebase |
| public RebaseCommand | Returns: this instancea progress monitor monitor)Set progress monitor |
| public RebaseCommand | Returns: thisThe merge strategy to use during this rebase operation. strategy)Set the |
| public RebaseCommand | |
| public RebaseCommand | |
| public RebaseCommand | |
| public RebaseCommand | Returns: thisthe name which will be used to refer to upstream in conflicts upstreamName)Optionally override the name of the upstream. |
| private RevCommit | |
| private RebaseResult | |
| pack-priv String | |
| public RevCommit | Returns: the new head, or nulla newCommit)org. object to check
if we can fast-forward to.Check if we can fast-forward and returns the new head if it is possible |
| private RevCommit | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |