Browse Source

Make setCredentialsProvider more convenient to use

Change-Id: I984836ea7d6a67fd2d1d05f270afa7c29f30971c
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
stable-0.11
Mathias Kinzler 14 years ago
parent
commit
414e0cd329
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java
  2. 6
      org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java

6
org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java

@ -325,8 +325,12 @@ public class FetchCommand extends GitCommand<FetchResult> {
/**
* @param credentialsProvider
* the {@link CredentialsProvider} to use
* @return {@code this}
*/
public void setCredentialsProvider(CredentialsProvider credentialsProvider) {
public FetchCommand setCredentialsProvider(
CredentialsProvider credentialsProvider) {
checkCallable();
this.credentialsProvider = credentialsProvider;
return this;
}
}

6
org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java

@ -353,8 +353,12 @@ public class PushCommand extends GitCommand<Iterable<PushResult>> {
/**
* @param credentialsProvider
* the {@link CredentialsProvider} to use
* @return {@code this}
*/
public void setCredentialsProvider(CredentialsProvider credentialsProvider) {
public PushCommand setCredentialsProvider(
CredentialsProvider credentialsProvider) {
checkCallable();
this.credentialsProvider = credentialsProvider;
return this;
}
}

Loading…
Cancel
Save