Uses of Record Class
io.github.jbastgen.stemma.app.model.FileChange
Packages that use FileChange
Package
Description
Application services between the UI and the
git-api: loading repositories as snapshots, running operations one at a
time per repository, watching and fetching, plus the pure logic around git data (merge sessions, discard plans, line
selection, release ranges, statistics, ignore files, remote URLs, message templates).Commit labels: the label definitions and assignments, suggestions from branch names and files, and estimating labels for
many commits at once.
View models of the UI: commits, refs, changes, diffs and the state of a repository that the views are rebuilt from, plus the
demo data.
Showing changes and file content: unified and side-by-side diffs, image comparison, source code with line numbers and the
blame column.
-
Uses of FileChange in io.github.jbastgen.stemma.app.git
Methods in io.github.jbastgen.stemma.app.git that return FileChangeModifier and TypeMethodDescriptionstatic FileChangeSnapshotMapper.file(io.github.jbastgen.stemma.git.api.ChangedFile f) The view model of a changed file of a commit.Methods in io.github.jbastgen.stemma.app.git that return types with arguments of type FileChangeModifier and TypeMethodDescriptionDiscardPlan.conflicted()The files with conflicts; they need their own confirmation, since discarding them abandons the resolution.DiscardPlan.ordinary()The files that can be discarded after one confirmation: everything except the conflicted ones.Methods in io.github.jbastgen.stemma.app.git with parameters of type FileChangeModifier and TypeMethodDescriptionstatic booleanDiscardPlan.isUntracked(FileChange f) Git does not know the file yet: a new file that is not staged.Method parameters in io.github.jbastgen.stemma.app.git with type arguments of type FileChangeModifier and TypeMethodDescriptionvoidRealRepoController.discardFiles(List<FileChange> files) Discards these files of the working tree (seeDiscardPlan): modified and deleted files go back to HEAD, new files are removed, untracked files are deleted, or moved to the trash when the settings say so.static StringDiscardPlan.list(List<FileChange> files) One name per line, the first 6, then "… and N more".static DiscardPlanDiscardPlan.of(List<FileChange> files) Sorts the files into the groups that are discarded differently: with conflicts, untracked, new and staged, and changed tracked files.voidRealRepoController.setStaged(List<FileChange> files, boolean staged) Stages these files, or unstages them; conflicted files are not staged this way (seeRealRepoController.setAllStaged(boolean)). -
Uses of FileChange in io.github.jbastgen.stemma.app.label
Method parameters in io.github.jbastgen.stemma.app.label with type arguments of type FileChangeModifier and TypeMethodDescriptionstatic StringLabelHints.buildPrompt(String template, String repo, String branch, List<FileChange> files, List<LabelIndex.LabelDef> labels, List<String> excludePatterns, Map<String, String> hints) Fills the template:{labels},{repo},{branch},{files}and{hint}. -
Uses of FileChange in io.github.jbastgen.stemma.app.model
Fields in io.github.jbastgen.stemma.app.model with type parameters of type FileChangeModifier and TypeFieldDescriptionstatic final List<FileChange> SampleData.FILESFiles shown for commits that carry no explicit file list.RepoState.wipMethods in io.github.jbastgen.stemma.app.model that return FileChangeMethods in io.github.jbastgen.stemma.app.model that return types with arguments of type FileChangeModifier and TypeMethodDescriptionstatic List<FileChange> CombinedChanges.combineFiles(List<List<FileChange>> perCommitOldestFirst) Commit.files()Returns the value of thefilesrecord component.CommitDetail.files()Returns the value of thefilesrecord component.Stash.files()Returns the value of thefilesrecord component.static List<FileChange> Files of a commit: its own list, or sample files derived from its position in the history.RepoState.selectedFiles()The selected files that are in the working tree list, in the order of the list.Methods in io.github.jbastgen.stemma.app.model with parameters of type FileChangeModifier and TypeMethodDescriptionDiffs.forFile(FileChange f) The diff lines of a file of the demo data, generated once and kept.Method parameters in io.github.jbastgen.stemma.app.model with type arguments of type FileChangeModifier and TypeMethodDescriptionvoidDemo repositories only: adds a commit on the current branch.static List<FileChange> CombinedChanges.combineFiles(List<List<FileChange>> perCommitOldestFirst) static int[]CombinedChanges.totals(List<FileChange> files) Totals over a file list; unknown counts (-1) count as 0.Constructor parameters in io.github.jbastgen.stemma.app.model with type arguments of type FileChangeModifierConstructorDescriptionCommitDetail(String body, List<FileChange> files) Creates an instance of aCommitDetailrecord class.Stash(String label, List<FileChange> files) A stash without a date.Stash(String label, List<FileChange> files, String when) Creates an instance of aStashrecord class. -
Uses of FileChange in io.github.jbastgen.stemma.app.ui.diff
Methods in io.github.jbastgen.stemma.app.ui.diff with parameters of type FileChangeModifier and TypeMethodDescriptionvoidDiffView.Actions.open(FileChange file) Opens another file of the same commit or change.Constructor parameters in io.github.jbastgen.stemma.app.ui.diff with type arguments of type FileChangeModifierConstructorDescriptionDiffView(List<FileChange> files, int index, List<DiffLine> lines, String compare, boolean split, DiffView.Actions actions)