Browse Source

Merge "Make setCredentialsProvider more convenient to use"

stable-0.11
Chris Aniszczyk 14 years ago committed by Code Review
parent
commit
257315d80e
  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 * @param credentialsProvider
* the {@link CredentialsProvider} to use * the {@link CredentialsProvider} to use
* @return {@code this}
*/ */
public void setCredentialsProvider(CredentialsProvider credentialsProvider) { public FetchCommand setCredentialsProvider(
CredentialsProvider credentialsProvider) {
checkCallable();
this.credentialsProvider = credentialsProvider; 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 * @param credentialsProvider
* the {@link CredentialsProvider} to use * the {@link CredentialsProvider} to use
* @return {@code this}
*/ */
public void setCredentialsProvider(CredentialsProvider credentialsProvider) { public PushCommand setCredentialsProvider(
CredentialsProvider credentialsProvider) {
checkCallable();
this.credentialsProvider = credentialsProvider; this.credentialsProvider = credentialsProvider;
return this;
} }
} }

Loading…
Cancel
Save