@Override public Author author() { return firstCommit.author(); }
@Override public Author author() { return firstCommit.author(); }
@Override public Author author() { return firstCommit.author(); }
/** * Returns the author who created this {@link Repository}. */ default Author author() { try { final List<Commit> history = history(Revision.INIT, Revision.INIT, ALL_PATH, 1).join(); return history.get(0).author(); } catch (CompletionException e) { final Throwable cause = Throwables.getRootCause(e); Throwables.throwIfUnchecked(cause); throw new StorageException("failed to retrieve the initial commit", cause); } }
/** * Returns the author who created this {@link Repository}. */ default Author author() { try { final List<Commit> history = history(Revision.INIT, Revision.INIT, ALL_PATH, 1).join(); return history.get(0).author(); } catch (CompletionException e) { final Throwable cause = Throwables.getRootCause(e); Throwables.throwIfUnchecked(cause); throw new StorageException("failed to retrieve the initial commit", cause); } }
/** * Returns the author who created this {@link Repository}. */ default Author author() { try { final List<Commit> history = history(Revision.INIT, Revision.INIT, ALL_PATH, 1).join(); return history.get(0).author(); } catch (CompletionException e) { final Throwable cause = Throwables.getRootCause(e); Throwables.throwIfUnchecked(cause); throw new StorageException("failed to retrieve the initial commit", cause); } }
public static WatchResultDto convert(Commit commit, @Nullable EntryDto<?> entry) { requireNonNull(commit, "commit"); return new WatchResultDto(commit.revision(), commit.author(), new CommitMessageDto(commit.summary(), commit.detail(), commit.markup()), commit.when(), entry); }
public static CommitDto convert(Commit commit) { requireNonNull(commit, "commit"); return convert(commit.revision(), commit.author(), new CommitMessageDto(commit.summary(), commit.detail(), commit.markup()), commit.when()); }
public static CommitDto convert(Commit commit) { requireNonNull(commit, "commit"); return convert(commit.revision(), commit.author(), new CommitMessageDto(commit.summary(), commit.detail(), commit.markup()), commit.when()); }
public static CommitDto convert(Commit commit) { requireNonNull(commit, "commit"); return convert(commit.revision(), commit.author(), new CommitMessageDto(commit.summary(), commit.detail(), commit.markup()), commit.when()); }
@Override protected Commit doForward(com.linecorp.centraldogma.common.Commit commit) { final Comment comment = new Comment(); comment.setContent(commit.detail()); comment.setMarkup(MarkupConverter.TO_DATA.convert(commit.markup())); return new Commit(RevisionConverter.TO_DATA.convert(commit.revision()), AuthorConverter.TO_DATA.convert(commit.author()), commit.whenAsText(), commit.summary(), comment, Collections.emptyList()); }
@Override protected Commit doForward(com.linecorp.centraldogma.common.Commit commit) { final Comment comment = new Comment(); comment.setContent(commit.detail()); comment.setMarkup(MarkupConverter.TO_DATA.convert(commit.markup())); return new Commit(RevisionConverter.TO_DATA.convert(commit.revision()), AuthorConverter.TO_DATA.convert(commit.author()), commit.whenAsText(), commit.summary(), comment, Collections.emptyList()); }
static CommitDto convert(Commit commit) { final CommitDto dto = new CommitDto(); dto.setAuthor(convert(commit.author())); dto.setRevision(convert(commit.revision())); dto.setTimestamp(commit.whenAsText()); dto.setSummary(commit.summary()); dto.setDetail(convert(commit.detail(), commit.markup())); return dto; }
static CommitDto convert(Commit commit) { final CommitDto dto = new CommitDto(); dto.setAuthor(convert(commit.author())); dto.setRevision(convert(commit.revision())); dto.setTimestamp(commit.whenAsText()); dto.setSummary(commit.summary()); dto.setDetail(convert(commit.detail(), commit.markup())); return dto; }
static CommitDto convert(Commit commit) { final CommitDto dto = new CommitDto(); dto.setAuthor(convert(commit.author())); dto.setRevision(convert(commit.revision())); dto.setTimestamp(commit.whenAsText()); dto.setSummary(commit.summary()); dto.setDetail(convert(commit.detail(), commit.markup())); return dto; }