Class SnapshotMapper
java.lang.Object
io.github.jbastgen.stemma.app.git.SnapshotMapper
Turns what the Git backend returned (
RepositorySnapshot) into the view models of the UI.-
Method Summary
Modifier and TypeMethodDescriptionstatic LibraryEntryThe summary of a repository for the library: branch, last commit, remotes, ahead/behind and changes.static FileChangefile(io.github.jbastgen.stemma.git.api.ChangedFile f) The view model of a changed file of a commit.static RepoStateA new state for the repository: the commits, branches, tags and changes of the snapshot, with the newest commit or the working tree row selected.
-
Method Details
-
entry
The summary of a repository for the library: branch, last commit, remotes, ahead/behind and changes. -
state
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
The view model of a changed file of a commit.
-