Class SampleData

java.lang.Object
io.github.jbastgen.stemma.app.model.SampleData

public final class SampleData extends Object
Sample data used by the UI prototype until a real git backend is wired in.
  • Field Details

    • FILES

      public static final List<FileChange> FILES
      Files shown for commits that carry no explicit file list.
    • LIBRARY

      public static final List<LibraryEntry> LIBRARY
  • Method Details

    • recentCommits

      public static List<Commit> recentCommits()
      Commits shown in the "recent commits" preview of the library.
    • repoFor

      public static RepoState repoFor(LibraryEntry lib)
      Sample history shown for every repository opened from the library.
    • freshRepo

      public static RepoState freshRepo(LibraryEntry lib)
      A just-created repository with a single initial commit.
    • filesOf

      public static List<FileChange> filesOf(RepoState r, Commit c)
      Files of a commit: its own list, or sample files derived from its position in the history.