Package io.github.jbastgen.stemma.app.git
package io.github.jbastgen.stemma.app.git
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).-
ClassDescriptionFeature 54: when the repositories are fetched by themselves.What one automatic fetch did, for the policy and for the single message to the user.Turns the user's
BackendSettingsinto a ready-to-useGitBackend.A backend together with an optional explanation, shown when the wish could not be fulfilled.The size of the code of a repository as it is now: lines, files, and the languages or file types used.One language (or file type): its files and lines.Three-way merge of text, line by line: the common ancestor (base) against "ours" and "theirs".A change that merges without conflict:linesare the merged result.A piece of the merged file.Both sides changed the same lines in different ways.Who made an automatically merged change.Lines all three versions have.What discarding a selection of working-tree files means, and what to tell the user before doing it.Decides what to do with a folder that was dropped on the library: open it when it is a git repository, make it one first when it is not.What to do with the dropped folder.Adds lines to the ignore files of a repository (.gitignore, or.git/info/excludefor what is only for this clone) and builds the patterns for them: exactly this file, all files with this extension, all files with this name, or a folder.The files a line can go to.The lines the user has selected in the diff of the working tree (feature 50): the keys of the lines (+12,-7, seeHunks.ChangeLine) of one section of the diff, the unstaged or the staged changes.The state of resolving one conflicting file: the merged chunks and what the user chose for each conflict.What the user chose for one conflict.Fills commit and merge message templates.What a template can refer to.The rules behind the Create repository dialog: where the repository will be, whether what was typed is usable, and what the branch field says when Git Flow is switched on or off.Carries out the actions of one real (not sample) repository view through the Git backend and keeps the view'sRepoStateup to date.The commits of a release: from the commit of a tag back to the previous tagged version (the nearest tag in its history), for the changelog of that release.The web pages of a repository on a hosting service (feature 14): derived from the remote's URL (git@github.com:org/repo.gitandhttps://github.com/org/repo.gitboth givehttps://github.com/org/repo), with the page of a branch, a commit, a file and the pull or merge requests for the services Stemma knows (GitHub, GitLab, Bitbucket, Azure DevOps, Gitea and Forgejo).The hosting services whose address scheme is known.A repository on a service:baseis the address of its web page, without a trailing slash.Application service through which the UI uses the Git backend.Immutable view of everything the main window shows about one repository at one point in time.The numbers behind the statistics view (feature 8), computed from the commits ofGitRepository.commitStats(int).The commits of one person.Two files that were often changed in the same commit.A file or folder with the number of commits that touched it and the lines changed.Feature 53: tells when something changed in a repository, whoever changed it: files of the working tree, or Git's own state (HEAD, the index, the branches and tags, a merge or rebase in progress).Turns what the Git backend returned (RepositorySnapshot) into the view models of the UI.Takes a git remote URL apart: the transport, the host and the user name in it.https,ssh, … ; scp-like addresses aressh; empty for a local path.