/** * Sets whether the push operation should be a dry run * * @param dryRun a boolean. * @return {@code this} */ public PushCommand setDryRun(boolean dryRun) { checkCallable(); this.dryRun = dryRun; return this; }
/** * Sets the force preference for push operation. * * @param force * whether to push forcefully * @return {@code this} */ public PushCommand setForce(boolean force) { checkCallable(); this.force = force; return this; }
/** * The remote executable providing receive-pack service for pack transports. * If no receive-pack is set, the default value of * <code>RemoteConfig.DEFAULT_RECEIVE_PACK</code> will be used. * * @see RemoteConfig#DEFAULT_RECEIVE_PACK * @param receivePack * name of the remote executable providing the receive-pack * service * @return {@code this} */ public PushCommand setReceivePack(String receivePack) { checkCallable(); this.receivePack = receivePack; return this; }
/** * Requests atomic push (all references updated, or no updates). * * Default setting is false. * * @param atomic * whether to run the push atomically * @return {@code this} * @since 4.2 */ public PushCommand setAtomic(boolean atomic) { checkCallable(); this.atomic = atomic; return this; }
/** * The remote (uri or name) used for the push operation. If no remote is * set, the default value of <code>Constants.DEFAULT_REMOTE_NAME</code> will * be used. * * @see Constants#DEFAULT_REMOTE_NAME * @param remote * the remote name * @return {@code this} */ public PushCommand setRemote(String remote) { checkCallable(); this.remote = remote; return this; }
/** * Set the thin-pack preference for push operation. * * Default setting is Transport.DEFAULT_PUSH_THIN * * @param thin * the thin-pack preference value * @return {@code this} */ public PushCommand setThin(boolean thin) { checkCallable(); this.thin = thin; return this; }
/** * The progress monitor associated with the push operation. By default, this * is set to <code>NullProgressMonitor</code> * * @see NullProgressMonitor * @param monitor * a {@link org.eclipse.jgit.lib.ProgressMonitor} * @return {@code this} */ public PushCommand setProgressMonitor(ProgressMonitor monitor) { checkCallable(); if (monitor == null) { monitor = NullProgressMonitor.INSTANCE; } this.monitor = monitor; return this; }
/** * The ref specs to be used in the push operation * * @param specs a {@link org.eclipse.jgit.transport.RefSpec} object. * @return {@code this} */ public PushCommand setRefSpecs(RefSpec... specs) { checkCallable(); this.refSpecs.clear(); Collections.addAll(refSpecs, specs); return this; }
/** * The ref specs to be used in the push operation * * @param specs * list of {@link org.eclipse.jgit.transport.RefSpec}s * @return {@code this} */ public PushCommand setRefSpecs(List<RefSpec> specs) { checkCallable(); this.refSpecs.clear(); this.refSpecs.addAll(specs); return this; }
/** * The ref lease specs to be used in the push operation, for a * force-with-lease push operation. * * @param specs * list of {@code RefLeaseSpec}s * @return {@code this} * @since 4.7 */ public PushCommand setRefLeaseSpecs(List<RefLeaseSpec> specs) { checkCallable(); this.refLeaseSpecs.clear(); for (RefLeaseSpec spec : specs) { refLeaseSpecs.put(spec.getRef(), spec); } return this; }
/** * Sets whether the push operation should be a dry run * * @param dryRun * @return {@code this} */ public PushCommand setDryRun(boolean dryRun) { checkCallable(); this.dryRun = dryRun; return this; }
/** * Sets the force preference for push operation. * * @param force * @return {@code this} */ public PushCommand setForce(boolean force) { checkCallable(); this.force = force; return this; }
/** * Sets the thin-pack preference for push operation. * * Default setting is Transport.DEFAULT_PUSH_THIN * * @param thin * @return {@code this} */ public PushCommand setThin(boolean thin) { checkCallable(); this.thin = thin; return this; }
/** * Sets whether the push operation should be a dry run * * @param dryRun a boolean. * @return {@code this} */ public PushCommand setDryRun(boolean dryRun) { checkCallable(); this.dryRun = dryRun; return this; }
/** * Sets the force preference for push operation. * * @param force * whether to push forcefully * @return {@code this} */ public PushCommand setForce(boolean force) { checkCallable(); this.force = force; return this; }
InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException { checkCallable();
/** * The ref specs to be used in the push operation * * @param specs * @return {@code this} */ public PushCommand setRefSpecs(RefSpec... specs) { checkCallable(); this.refSpecs.clear(); Collections.addAll(refSpecs, specs); return this; }
/** * The ref specs to be used in the push operation * * @param specs * @return {@code this} */ public PushCommand setRefSpecs(List<RefSpec> specs) { checkCallable(); this.refSpecs.clear(); this.refSpecs.addAll(specs); return this; }
/** * The ref specs to be used in the push operation * * @param specs a {@link org.eclipse.jgit.transport.RefSpec} object. * @return {@code this} */ public PushCommand setRefSpecs(RefSpec... specs) { checkCallable(); this.refSpecs.clear(); Collections.addAll(refSpecs, specs); return this; }
/** * The ref specs to be used in the push operation * * @param specs * list of {@link org.eclipse.jgit.transport.RefSpec}s * @return {@code this} */ public PushCommand setRefSpecs(List<RefSpec> specs) { checkCallable(); this.refSpecs.clear(); this.refSpecs.addAll(specs); return this; }