aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java
diff options
context:
space:
mode:
authorMincong HUANG <mincong.h@gmail.com>2018-05-30 22:24:24 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2018-06-02 02:04:20 +0200
commit36a8c2106983d9070a2c67961f7945db76403776 (patch)
tree74843a8abbc65d06fd70e4b5941e15d883ae165f /org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java
parentbbf7ca3edacef36df6d1611ae83668c6ff9ab398 (diff)
downloadjgit-36a8c2106983d9070a2c67961f7945db76403776.tar.gz
jgit-36a8c2106983d9070a2c67961f7945db76403776.zip
Chain RemoteAddCommand methods
Change-Id: I1cf64c90a5cd2220034810b0d65d59582b420c4e Signed-off-by: Mincong Huang <mincong.h@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java
index c43c5c6f98..a8fdcd29f5 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java
@@ -86,9 +86,12 @@ public class RemoteAddCommand extends GitCommand<RemoteConfig> {
*
* @param name
* a remote name
+ * @return this instance
+ * @since 5.0
*/
- public void setName(String name) {
+ public RemoteAddCommand setName(String name) {
this.name = name;
+ return this;
}
/**
@@ -96,9 +99,12 @@ public class RemoteAddCommand extends GitCommand<RemoteConfig> {
*
* @param uri
* an URL for the remote
+ * @return this instance
+ * @since 5.0
*/
- public void setUri(URIish uri) {
+ public RemoteAddCommand setUri(URIish uri) {
this.uri = uri;
+ return this;
}
/**