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>
* 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;
}
/**
* 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,