Browse Source

Chain RemoteAddCommand methods

Change-Id: I1cf64c90a5cd2220034810b0d65d59582b420c4e
Signed-off-by: Mincong Huang <mincong.h@gmail.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.0
Mincong HUANG 7 years ago committed by Matthias Sohn
parent
commit
36a8c21069
  1. 10
      org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java

10
org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java

@ -86,9 +86,12 @@ public class RemoteAddCommand extends GitCommand<RemoteConfig> {
* *
* @param name * @param name
* a remote name * a remote name
* @return this instance
* @since 5.0
*/ */
public void setName(String name) { public RemoteAddCommand setName(String name) {
this.name = name; this.name = name;
return this;
} }
/** /**
@ -96,9 +99,12 @@ public class RemoteAddCommand extends GitCommand<RemoteConfig> {
* *
* @param uri * @param uri
* an URL for the remote * an URL for the remote
* @return this instance
* @since 5.0
*/ */
public void setUri(URIish uri) { public RemoteAddCommand setUri(URIish uri) {
this.uri = uri; this.uri = uri;
return this;
} }
/** /**

Loading…
Cancel
Save