summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorKevin Sawicki <kevin@github.com>2012-02-29 10:13:36 -0800
committerChris Aniszczyk <zx@twitter.com>2012-03-05 20:53:59 -0800
commit8db5414dcf09e62154818b4d8da7d5be07098bb2 (patch)
tree4cf49ca466a9764b2e399503d4dfe75de7ca11e3 /org.eclipse.jgit
parent9908c203a5fc8bb59e6b539d94c558a516247161 (diff)
downloadjgit-8db5414dcf09e62154818b4d8da7d5be07098bb2.tar.gz
jgit-8db5414dcf09e62154818b4d8da7d5be07098bb2.zip
Return command from StashCreateCommand setters
Previously were void which made them inconsistent with the fluid setter pattern used in other commands. Change-Id: Idb81dfc7bb097306f0c5d6e34f91a2bbab501668 Signed-off-by: Chris Aniszczyk <zx@twitter.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java
index 8ead2b57fa..e26ae879fd 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java
@@ -142,9 +142,11 @@ public class StashCreateCommand extends GitCommand<RevCommit> {
* Set the person to use as the author and committer in the commits made
*
* @param person
+ * @return {@code this}
*/
- public void setPerson(PersonIdent person) {
+ public StashCreateCommand setPerson(PersonIdent person) {
this.person = person;
+ return this;
}
/**
@@ -153,9 +155,11 @@ public class StashCreateCommand extends GitCommand<RevCommit> {
* This value defaults to {@link Constants#R_STASH}
*
* @param ref
+ * @return {@code this}
*/
- public void setRef(String ref) {
+ public StashCreateCommand setRef(String ref) {
this.ref = ref;
+ return this;
}
private RevCommit parseCommit(final ObjectReader reader,