| Modifier and Type | Field and Description |
|---|---|
| private ContentMergeStrategy | |
| private static final String | |
| private MergeCommand. | |
| private ProgressMonitor | |
| private BranchConfig. | |
| private String | |
| private String | |
| private MergeStrategy | |
| private SubmoduleConfig. | |
| private TagOpt |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public PullResult | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private MergeCommand. | |
| public static BranchConfig. | Returns: theorg.name of the local branch branchName, Config the config)org. to read the value fromReads the rebase mode to use for a pull command from the repository configuration. |
| public String | Returns: the remote used for the pull operation if it was set explicitlyGet the remote name used for pull operation |
| public String | Returns: the remote branch name used for the pull operation if it was set explicitlyGet the remote branch name for the pull operation |
| public PullCommand | Returns: thisthe strategy)ContentMergeStrategy to be usedSets the content merge strategy to use if the
|
| public PullCommand | Returns: thiscorresponds to the --ff/--no-ff/--ff-only options. If
fastForwardModenull use the value of pull.ff configured in
git config. If pull.ff is not configured fall back to
the value of merge.ff. If merge.ff is not
configured --ff is the built-in default.Set the fast forward mode. |
| public PullCommand | Returns: this instancea progress monitor monitor)Set progress monitor |
| public PullCommand | Returns: thiswhether to use rebase after fetching useRebase)Set if rebase should be used after fetching. |
| public PullCommand | Returns: thisSets the |
| public PullCommand | Returns: thisthe
recurseorg.
to be used for recursing into submodulesSet the mode to be used for recursing into submodules. |
| public PullCommand | |
| public PullCommand | Returns: thisremote branch name to be used for pull operation remoteBranchName)The remote branch name to be used for the pull operation. |
| public PullCommand | Returns: thisThe merge strategy to use during this pull operation. strategy)Set the @{code MergeStrategy} |
| public PullCommand |
| contentStrategy | back to summary |
|---|---|
| private ContentMergeStrategy contentStrategy | |
| DOT | back to summary |
|---|---|
| private static final String DOT | |
| fastForwardMode | back to summary |
|---|---|
| private MergeCommand. | |
| monitor | back to summary |
|---|---|
| private ProgressMonitor monitor | |
| pullRebaseMode | back to summary |
|---|---|
| private BranchConfig. | |
| remote | back to summary |
|---|---|
| private String remote | |
| remoteBranchName | back to summary |
|---|---|
| private String remoteBranchName | |
| strategy | back to summary |
|---|---|
| private MergeStrategy strategy | |
| submoduleRecurseMode | back to summary |
|---|---|
| private SubmoduleConfig. | |
| tagOption | back to summary |
|---|---|
| private TagOpt tagOption | |
| PullCommand | back to summary |
|---|---|
| protected PullCommand(Repository repo) Constructor for PullCommand.
| |
| call | back to summary |
|---|---|
| public PullResult call() throws GitAPIException, WrongRepositoryStateException, InvalidConfigurationException, InvalidRemoteException, CanceledException, RefNotFoundException, RefNotAdvertisedException, NoHeadException, TransportException Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command
Execute the
| |
| getFastForwardMode | back to summary |
|---|---|
| private MergeCommand. | |
| getRebaseMode | back to summary |
|---|---|
| public static BranchConfig. Reads the rebase mode to use for a pull command from the repository
configuration. This is the value defined for the configurations
| |
| getRemote | back to summary |
|---|---|
| public String getRemote() Get the remote name used for pull operation
| |
| getRemoteBranchName | back to summary |
|---|---|
| public String getRemoteBranchName() Get the remote branch name for the pull operation
| |
| setContentMergeStrategy | back to summary |
|---|---|
| public PullCommand setContentMergeStrategy(ContentMergeStrategy strategy) Sets the content merge strategy to use if the
| |
| setFastForward | back to summary |
|---|---|
| public PullCommand setFastForward(MergeCommand. Set the fast forward mode. It is used if pull is configured to do a merge
as opposed to rebase. If non-
| |
| setProgressMonitor | back to summary |
|---|---|
| public PullCommand setProgressMonitor(ProgressMonitor monitor) Set progress monitor
| |
| setRebase | back to summary |
|---|---|
| public PullCommand setRebase(boolean useRebase) Set if rebase should be used after fetching. If set to true, rebase is used instead of merge. This is equivalent to --rebase on the command line. If set to false, merge is used after fetching, overriding the configuration file. This is equivalent to --no-rebase on the command line. This setting overrides the settings in the configuration file. By default, the setting in the repository configuration file is used. A branch can be configured to use rebase by default. See branch.[name].rebase and branch.autosetuprebase.
| |
| setRebase | back to summary |
|---|---|
| public PullCommand setRebase(BranchConfig. Sets the
A branch can be configured to use rebase by default. See
| |
| setRecurseSubmodules | back to summary |
|---|---|
| public PullCommand setRecurseSubmodules(SubmoduleConfig. Set the mode to be used for recursing into submodules.
| |
| setRemote | back to summary |
|---|---|
| public PullCommand setRemote(String remote) The remote (uri or name) to be used for the pull operation. If no remote
is set, the branch's configuration will be used. If the branch
configuration is missing the default value of
| |
| setRemoteBranchName | back to summary |
|---|---|
| public PullCommand setRemoteBranchName(String remoteBranchName) The remote branch name to be used for the pull operation. If no remoteBranchName is set, the branch's configuration will be used. If the branch configuration is missing the remote branch with the same name as the current branch is used.
| |
| setStrategy | back to summary |
|---|---|
| public PullCommand setStrategy(MergeStrategy strategy) Set the @{code MergeStrategy}
| |
| setTagOpt | back to summary |
|---|---|
| public PullCommand setTagOpt(TagOpt tagOpt) Set the specification of annotated tag behavior during fetch
| |