@Test public void amendCommit_theResultCommitShouldHaveTheSameParentsAsTheAmendedCommit() throws IOException { RevCommit[] parents = gfs.getStatusProvider().commit().getParents(); writeSomethingToGfs(); Result result = Gfs.commit(gfs).amend(true).execute(); assertArrayEquals(parents, result.getCommit().getParents()); }
@Nonnull public GfsCommit amend(boolean amend) { this.amend = amend; return this; }
GfsCommit extends GfsCommand<GfsCommit.Result> { @Nonnull public GfsCommit amend(boolean amend) { this.amend = amend; return this; } }
GfsCommit extends GfsCommand<GfsCommit.Result> { @Nonnull public GfsCommit amend(boolean amend) { this.amend = amend; return this; } GfsCommit(GitFileSystem gfs); }
GfsCommit extends GfsCommand<GfsCommit.Result> { @Nonnull public GfsCommit amend(boolean amend) { this.amend = amend; 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 amend(boolean amend) { this.amend = amend; 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);  }