/** * Set the specification of annotated tag behavior during fetch * * @param tagOpt * the {@link org.eclipse.jgit.transport.TagOpt} * @return {@code this} * @since 4.7 */ public PullCommand setTagOpt(TagOpt tagOpt) { checkCallable(); this.tagOption = tagOpt; return this; }
/** * 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. * * @param remoteBranchName * remote branch name to be used for pull operation * @return {@code this} * @since 3.3 */ public PullCommand setRemoteBranchName(String remoteBranchName) { checkCallable(); this.remoteBranchName = remoteBranchName; return this; }
/** * 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 * <code>Constants.DEFAULT_REMOTE_NAME</code> will be used. * * @see Constants#DEFAULT_REMOTE_NAME * @param remote * name of the remote to pull from * @return {@code this} * @since 3.3 */ public PullCommand setRemote(String remote) { checkCallable(); this.remote = remote; return this; }
/** * 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. * <p> * If set to false, merge is used after fetching, overriding the * configuration file. This is equivalent to --no-rebase on the command * line. * <p> * This setting overrides the settings in the configuration file. By * default, the setting in the repository configuration file is used. * <p> * A branch can be configured to use rebase by default. See * branch.[name].rebase and branch.autosetuprebase. * * @param useRebase * whether to use rebase after fetching * @return {@code this} */ public PullCommand setRebase(boolean useRebase) { checkCallable(); pullRebaseMode = useRebase ? BranchRebaseMode.REBASE : BranchRebaseMode.NONE; return this; }
checkCallable(); pullRebaseMode = rebaseMode; return this;
/** * Set the fast forward mode. It is used if pull is configured to do a merge * as opposed to rebase. If non-{@code null} takes precedence over the * fast-forward mode configured in git config. * * @param fastForwardMode * corresponds to the --ff/--no-ff/--ff-only options. If * {@code null} use the value of {@code pull.ff} configured in * git config. If {@code pull.ff} is not configured fall back to * the value of {@code merge.ff}. If {@code merge.ff} is not * configured --ff is the built-in default. * @return {@code this} * @since 4.9 */ public PullCommand setFastForward( @Nullable FastForwardMode fastForwardMode) { checkCallable(); this.fastForwardMode = fastForwardMode; return this; }
/** * Set the specification of annotated tag behavior during fetch * * @param tagOpt * the {@link org.eclipse.jgit.transport.TagOpt} * @return {@code this} * @since 4.7 */ public PullCommand setTagOpt(TagOpt tagOpt) { checkCallable(); this.tagOption = tagOpt; return this; }
/** * 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. * * @param remoteBranchName * @return {@code this} * @since 3.3 */ public PullCommand setRemoteBranchName(String remoteBranchName) { checkCallable(); this.remoteBranchName = remoteBranchName; return this; }
/** * 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 * <code>Constants.DEFAULT_REMOTE_NAME</code> will be used. * * @see Constants#DEFAULT_REMOTE_NAME * @param remote * @return {@code this} * @since 3.3 */ public PullCommand setRemote(String remote) { checkCallable(); this.remote = remote; return this; }
/** * 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. * * @param remoteBranchName * remote branch name to be used for pull operation * @return {@code this} * @since 3.3 */ public PullCommand setRemoteBranchName(String remoteBranchName) { checkCallable(); this.remoteBranchName = remoteBranchName; return this; }
/** * 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 * <code>Constants.DEFAULT_REMOTE_NAME</code> will be used. * * @see Constants#DEFAULT_REMOTE_NAME * @param remote * name of the remote to pull from * @return {@code this} * @since 3.3 */ public PullCommand setRemote(String remote) { checkCallable(); this.remote = remote; return this; }
/** * 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. * <p> * If set to false, merge is used after fetching, overriding the * configuration file. This is equivalent to --no-rebase on the command * line. * <p> * This setting overrides the settings in the configuration file. By * default, the setting in the repository configuration file is used. * <p> * A branch can be configured to use rebase by default. See * branch.[name].rebase and branch.autosetuprebase. * * @param useRebase * @return {@code this} */ public PullCommand setRebase(boolean useRebase) { checkCallable(); pullRebaseMode = useRebase ? BranchRebaseMode.REBASE : BranchRebaseMode.NONE; return this; }
/** * 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. * <p> * If set to false, merge is used after fetching, overriding the * configuration file. This is equivalent to --no-rebase on the command * line. * <p> * This setting overrides the settings in the configuration file. By * default, the setting in the repository configuration file is used. * <p> * A branch can be configured to use rebase by default. See * branch.[name].rebase and branch.autosetuprebase. * * @param useRebase * whether to use rebase after fetching * @return {@code this} */ public PullCommand setRebase(boolean useRebase) { checkCallable(); pullRebaseMode = useRebase ? BranchRebaseMode.REBASE : BranchRebaseMode.NONE; return this; }
checkCallable(); pullRebaseMode = rebaseMode; return this;
checkCallable(); pullRebaseMode = rebaseMode; return this;
RefNotFoundException, RefNotAdvertisedException, NoHeadException, org.eclipse.jgit.api.errors.TransportException { checkCallable();
/** * Set the fast forward mode. It is used if pull is configured to do a merge * as opposed to rebase. If non-{@code null} takes precedence over the * fast-forward mode configured in git config. * * @param fastForwardMode * corresponds to the --ff/--no-ff/--ff-only options. If * {@code null} use the value of {@code pull.ff} configured in * git config. If {@code pull.ff} is not configured fall back to * the value of {@code merge.ff}. If {@code merge.ff} is not * configured --ff is the built-in default. * @return {@code this} * @since 4.9 */ public PullCommand setFastForward( @Nullable FastForwardMode fastForwardMode) { checkCallable(); this.fastForwardMode = fastForwardMode; return this; }
RefNotFoundException, RefNotAdvertisedException, NoHeadException, org.eclipse.jgit.api.errors.TransportException { checkCallable();
RefNotFoundException, RefNotAdvertisedException, NoHeadException, org.eclipse.jgit.api.errors.TransportException { checkCallable();