Class SnapshotMapper

java.lang.Object
io.github.jbastgen.stemma.app.git.SnapshotMapper

public final class SnapshotMapper extends Object
Turns what the Git backend returned (RepositorySnapshot) into the view models of the UI.
  • Method Details

    • entry

      public static LibraryEntry entry(RepositorySnapshot s)
      The summary of a repository for the library: branch, last commit, remotes, ahead/behind and changes.
    • state

      public static RepoState state(RepositorySnapshot s)
      A new state for the repository: the commits, branches, tags and changes of the snapshot, with the newest commit or the working tree row selected.
    • file

      public static FileChange file(io.github.jbastgen.stemma.git.api.ChangedFile f)
      The view model of a changed file of a commit.