@Test public void commitWithAuthor_theResultCommitShouldHaveTheSpecifiedAuthor() throws IOException { writeSomethingToGfs(); PersonIdent author = new PersonIdent("test_author_name", "test_author@email.com"); Result result = Gfs.commit(gfs).author(author).execute(); assertEquals(author, result.getCommit().getAuthorIdent()); }
@Nonnull public GfsCommit author(@Nullable PersonIdent author) { this.author = author; return this; }
GfsCommit extends GfsCommand<GfsCommit.Result> { @Nonnull public GfsCommit author(@Nullable PersonIdent author) { this.author = author; return this; } }
GfsCommit extends GfsCommand<GfsCommit.Result> { @Nonnull public GfsCommit author(@Nullable PersonIdent author) { this.author = author; return this; } GfsCommit(GitFileSystem gfs); }
GfsCommit extends GfsCommand<GfsCommit.Result> { @Nonnull public GfsCommit author(@Nullable PersonIdent author) { this.author = author; return this; } GfsCommit(GitFileSystem gfs); @Nonnull GfsCommit author(@Nullable PersonIdent author); @Nonnull GfsCommit committer(@Nullable PersonIdent committer); @Nonnull GfsCommit message(@Nullable String message); @Nonnull GfsCommit amend(boolean amend); @Nonnull GfsCommit allowEmpty(boolean allowEmpty); }
GfsCommit extends GfsCommand<GfsCommit.Result> { @Nonnull public GfsCommit author(@Nullable PersonIdent author) { this.author = author; return this; } GfsCommit(GitFileSystem gfs); @Nonnull GfsCommit author(@Nullable PersonIdent author); @Nonnull GfsCommit committer(@Nullable PersonIdent committer); @Nonnull GfsCommit message(@Nullable String message); @Nonnull GfsCommit amend(boolean amend); @Nonnull GfsCommit allowEmpty(boolean allowEmpty);  }