Browse Source

Merge branch 'stable-5.0'

* stable-5.0:
  Chain RemoteAddCommand methods

Change-Id: I20d3cef5b5579c72ffd6809b7f6a8d787d631aaa
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.1
David Pursehouse 7 years ago
parent
commit
61e2414ef7
  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