All Classes and Interfaces
Class
Description
The accent colour (feature 15): the orange of highlights, selected rows, primary buttons and links, which the user can
replace.
A request that is running (or has run): wait for
AiCall.result(), or AiCall.cancel() it.Everything the AI connection needs, as one immutable snapshot of the settings.
A request to an AI service failed.
The log of everything that goes to an AI service: a file of its own (
stemma-ai-YYYY-MM-DD.log in the log folder,
see logback.xml), apart from the application log.Resolving the conflicts of a file with the AI (feature 6): the prompt with the three versions of every open conflict and a few
lines around it, the strict reading of the answer, and the safety checks a proposal must pass.
What could be done with an answer: the proposals that passed, and the conflicts (by number) that stay open with the reason.
A proposal for one conflict.
The kinds of AI service Stemma can talk to.
The answer of an AI service.
The one door to AI services.
Where the API key of an account comes from (the credential store).
Where Stemma keeps its own files.
The global settings that the settings dialog edits (everything except look and layout, see
ViewSettings).How merge conflicts are resolved.
Result of reading the extra-configuration text.
Writes the script that hands credentials to git and ssh into the portable configuration folder.
Author of a commit.
Feature 54: when the repositories are fetched by themselves.
What one automatic fetch did, for the policy and for the single message to the user.
Equivalent of CSS
repeat(auto-fill, minmax(minCell, 1fr)): as many columns as fit, all of the same width.The pictures and profile pages of the authors (feature 59).
An author on screen: who, and a commit of his on the GitHub repository (both may be null) to find the account.
A GitHub repository: the commits of an author on it tell the account.
Turns the user's
BackendSettings into a ready-to-use GitBackend.A backend together with an optional explanation, shown when the wish could not be fulfilled.
Which Git implementation the application uses.
The user's choice of Git backend.
The lines of a file with the commit that last changed each of them (feature 47): a coloured bar for the age (newer is warmer), and, at the
first line of every block, the short commit id, the author and the date.
The company branding (feature 16): up to three brand colours, the company name and address, and a logo.
The branding file (feature 18): accent and brand colours, graph colours and branch rules, company data and the logo (embedded as
base64) in one JSON file.
What a file holds, checked.
A changelog in the Keep a Changelog style (feature 5): reading the proposal of the AI, merging it into
CHANGELOG.md under Unreleased without touching existing entries, and showing what the merge adds.The proposal for the changelog and the change it makes to
CHANGELOG.md (feature 5).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.
The text of a file with the colours of its language (feature 52): a numbered line per row, the pieces of a line in the colour of what
they are.
What several selected commits changed, put together.
The diff of one commit for one file, with the heading to show above it.
What is known about one commit when it is described: its message and the files it changed.
One changed file:
status is "added", "modified" or "deleted"; diff is the unified diff text.Reads what a description needs from a repository: message and changes of each commit.
What the details panel needs about one commit of a real repository; loaded on demand.
Describes commits with the AI connection and remembers the answers.
A running description: wait for
CommitSummarizer.Task.result() or CommitSummarizer.Task.cancel().The description of one or several commits: builds the prompt (from the editable template and the commit data) and
reads the answer.
The description.
Puts data of the repository into a prompt of the Cowork view.
One commit as it is sent: short id, subject, date and labels; no author.
What is known about the repository.
A word that a prompt can use to ask for data of the repository, with what it stands for (shown as a tool tip).
Takes the results of the Cowork view out of the application: as formatted text for the clipboard (HTML for mails and word processors,
the Markdown as plain text), and as a PDF.
A question and the answer to it (Markdown).
The library of prompts of the Cowork view: the ready-made ones, and the user's own, which are kept in the file
prompts/cowork-prompts.tsv of the configuration folder (one prompt per line: category, title and text, separated by tabs;
a line break in the text is written as \n).A title and a category for a prompt.
The Cowork view: talk to the AI about the repository.
What the view needs from the repository view.
The Create repository dialog: name, location (typed or chosen with a folder chooser), the initial branch, an
option to use Git Flow, and a line at the end that shows the full path of the repository as it will be created.
What was asked for.
The accounts Stemma knows (which host, which user, which key) and their secrets.
One account.
Large dialog with a page list on the left and the selected page on the right, shown over a scrim inside the main
window.
One page of the dialog.
Three-way merge of text, line by line: the common ancestor (
base) against "ours" and "theirs".A change that merges without conflict:
lines are 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.
One line of a unified diff.
Parses unified diffs and produces the sample diffs shown by the prototype UI.
The file currently opened in the diff view.
Diff of one file against its previous version, unified or side by side.
Callbacks into the owning repository view.
What discarding a selection of working-tree files means, and what to tell the user before doing it.
Starts an external merge tool for a conflicting file: the three versions are written to files in the
configuration folder (never to a system temp folder), the command line of the settings is filled in and run
without a shell, and the merged result is expected in the working-tree file.
The files a tool is given.
The programs listed in Settings → Integration → Tools (feature 13): every tool adds Open in <name> to the
context menu of a file.
One tool.
A changed file.
The parents of the commits in the history of one file (feature 46): the graph of a list that has only some of the commits would have lines
that run to commits that are not there.
Small icons for folders and for the kinds of files (feature 59): a folder, source code, web pages, styles, pictures, documents, data,
configuration, scripts, archives, build files, locks, media, fonts, and a plain sheet for everything else.
The kinds of files that have an icon of their own.
Shows a repository, a folder or a file in the system's file manager (Explorer, Finder, the Files application of the
Linux desktop).
The second way: ask the desktop.
The operating systems that have their own way to show a file.
The outcome of
FileManager.show(io.github.jbastgen.stemma.app.io.FileManager.Os, java.nio.file.Path, java.lang.String, java.lang.String, io.github.jbastgen.stemma.app.io.FileManager.Runner, io.github.jbastgen.stemma.app.io.FileManager.Fallback): message says what went wrong when ok is false.Starts a command.
What to show: a path that exists, and whether it is a file (to be selected) or a folder (to be opened).
Opens a file with the program the operating system has for it (feature 12):
open, xdg-open or
rundll32 url.dll,FileProtocolHandler, then java.awt.Desktop.The Files view (feature 37): the files of the selected commit (or of the last commit while the working tree is selected) as a
tree, and a preview of the one that is chosen: text, rendered Markdown, images.
Where the files come from.
How the finish ended.
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.
Builders for the controls of settings pages, so every page looks the same.
A generated changelog in a text area, to edit and copy (feature 5).
The Git Flow branching model on top of a
GitRepository: start and finish features, releases and
hotfixes, with the same rules as the git flow command line tool.Branch names and prefixes of a repository.
Says what setting Git Flow up would do, and what is wrong with the choices, without touching the repository: the wizard shows
this live, and
GitFlow.initialize(io.github.jbastgen.stemma.gitflow.GitFlowConfig) acts on the same facts, so the preview and the real run cannot disagree.The facts of a repository the plan depends on.
The Git Flow set-up wizard (feature 27): the branches, the prefixes, a live preview of what will happen, and the problems at
once.
What the user chose.
The colours of the lanes of the commit graph (feature 17): a list of colours that replaces the colours of the theme, and rules
that pin a colour to the branches whose name matches a pattern.
What the painter needs for one row: the colour of every lane entering, of the node, and of every parent edge.
Assigns commits to lanes of the commit graph.
A commit and the commits it comes from.
Paints the lane lines and commit nodes of the history graph, one 28px row per commit, onto a canvas.
What the graph needs to know about each row.
The table of colour rules for branches (feature 17): a branch pattern (
main, feature/STM-*, re:release/\d+)
and a colour (#rrggbb) per row, in order; the first matching row wins.Colours source text (feature 52): the kind of every piece of every line.
Rows of equal height inside a scroll pane, built only for what is on screen (plus a margin): scrolling a history of
a thousand commits, or a diff of five thousand lines, creates a few dozen row nodes, not thousands.
Paints the graph for the rows
from to to; from starts at y = 0 of the canvas.What views need from the application window.
The language of the user interface (feature 9).
A language of the list.
24x24 stroke icons (same paths as the design prototype).
Adds lines to the ignore files of a repository (
.gitignore, or .git/info/exclude for 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.
Which files the diff view shows as pictures (feature 56): the formats JavaFX can decode.
One version of a picture file.
The two versions the view compares; either is
null when the file does not exist on that side.About Stemma: version, the system it runs on (for bug reports), and the libraries it is built from.
The to-do list of an interactive rebase: every commit with the action to take (pick, reword, squash, fixup,
drop), a field for the new message of a reworded commit, and buttons to move a commit up or down.
A small JSON reader and writer, enough for the requests and answers of AI services: objects become
Map<String,Object>, arrays List<Object>, numbers Double, plus String, Boolean
and null.The text is not valid JSON.
What a piece of source text is, as far as its colour goes (feature 52).
The kinds of Git Flow branches the application starts and finishes.
Guesses the labels of commits with the AI, one commit at a time: for each commit the prompt names the configured
labels and shows the commit's message and changes, the answer is read strictly (only configured labels count), and
the labels found are applied.
Sends a prompt.
One run over some commits.
Reads message and changes of one commit; blocking.
What a run did.
A request that is under way: its answer, and a way to stop it.
Called before each commit: how many are done, how many there are.
Applies the labels (by id) to a commit.
Suggests labels for the commit that is being made (features 25 and 28), without an AI: the type of the branch name
(
hotfix/ gives a label named Hotfix) and the kind of the files (only documentation gives Documentation, only tests gives
Test).The label index: a text file that records which labels exist and which commits have which labels.
A label that can be given to commits.
The commit labels for the views: knows whether the feature is on, where the index file is (it follows the
settings), and gives the labels of commits.
Colour tokens (see theme-*.css) used for the lanes of the commit graph, in lane order.
The languages that are coloured (feature 52).
Which language a file is in: by its extension, by its name, and by its first line.
Plain entry point.
A repository known to the library.
Remembers which repositories are in the library, as a list of folders in the per-user configuration directory.
The lines the user has selected in the diff of the working tree (feature 50): the keys of the lines (
+12, -7, see
Hunks.ChangeLine) of one section of the diff, the unstaged or the staged changes.Removes old daily log files.
Finding, reading and searching the daily log files (
stemma-YYYY-MM-DD.log) for the log page of the About dialog.What was read.
The lines that contain the search text, without regard to case; all lines when it is blank.
Which log: the one of the application, or the one of the requests to AI services.
Which lines of the log to show: all, those of level info and above, or only warnings and errors.
How much Stemma writes to its log file: Info normally, Debug or Trace when something has to be found out.
The Logs page of the About dialog: the log file in a text area, scrolled to the end, with a search box (only the
lines that contain the text), a level filter, a switch that follows the file while it grows, copying and saving, and
a button for the log folder.
Application shell: tab strip, library or repository view, status bar, dialogs and toasts.
A small Markdown reader for the preview of
*.md files (feature 29): headings, paragraphs, lists (also nested), block quotes,
fenced code, rules, simple tables and the usual inline marks (bold, italic, strike-through, code, links, images as their text).Markdown as HTML for the clipboard: pasted into a mail, a word processor or a notes app it keeps its headings, lists, emphasis, code
and tables.
Draws the blocks of
Markdown as JavaFX nodes (feature 29).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.
Stemma's own merge tool for one text file: the conflicts with "ours" and "theirs" side by side and a button row to
take either side or both, the automatically merged changes in between, and the result in an editable text area.
Fills commit and merge message templates.
What a template can refer to.
Translation of commit messages with the AI (feature 7): the prompt, and reading the answer back into one text per commit.
One message to translate.
Scrim plus centred form dialog (440px wide, 14% from the top).
Description of a simple form dialog.
One option of a
ModalSpec.Kind.CHOICE field: its label, and a line below it that says what it means.One field of the form.
What kind of control a field is.
A button Suggest message under the field
targetKey: ask gets what is typed in the form so far and answers
with the text for the field (or fails with a readable message).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.
Copies of files from old commits that were opened with the system's program (feature 12).
The Overview view (feature 37): what the repository is at a glance (name, headline of the README, place, counts as tiles,
branch and remotes) and, below, its statistics (feature 8).
Writes a PDF whose pages are pictures (JPEG): the page of the document looks exactly like what was drawn, in every script, and no font
has to be embedded.
Auto-hiding popover anchored below a node.
The real
Avatars.Source (feature 59): github.com and api.github.com, gravatar.com and api.gravatar.com, through the proxy of
the network settings.Finds the logo of a project in its working tree (feature 61).
The logos of the projects (feature 61), found once per repository and kept:
ProjectLogo does the finding, this class does it off
the JavaFX thread, reads the file the user chose (stemma.logo of the repository's configuration) and hands the picture to whoever
asked.What can be done with the prompts of the library, shared by the favourites panel of the Cowork view and the dialog that manages all
prompts: new, edit (a form), delete or hide (after a question), favourites, categories.
A change of the prompt file.
What stands between the repository and an AI service: text that goes out is cleaned of obvious secrets and cut to
the configured size, and files that must never be sent can be recognised.
The outgoing text and what was done to it.
The dialog that manages all prompts of the library (ready-made and own), grouped by category: the star makes a prompt a favourite (the
favourites are what the panel above the input field of the Cowork view shows), and every prompt and category can be changed or removed.
The texts Stemma puts around what it sends to an AI service.
Carries out the actions of one real (not sample) repository view through the Git backend and keeps the view's
RepoState up to date.A name that points to a commit: a branch, a remote branch or a tag.
What a ref is.
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.
A remote and its branches.
The web pages of a repository on a hosting service (feature 14): derived from the remote's URL
(
git@github.com:org/repo.git and https://github.com/org/repo.git both give https://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:
base is the address of its web page, without a trailing slash.Settings of one repository: its remotes, its ignore rules and how it authenticates.
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.
State of one open repository as the views see it.
The numbers behind the statistics view (feature 8), computed from the commits of
GitRepository.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.
One open repository: toolbar, sidebar, commit graph, details and diff.
What the main area shows: the history with its panels, the files of a commit, or the overview of the repository.
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).Sample data used by the UI prototype until a real git backend is wired in.
A file with secrets (access tokens, passwords, key passphrases), encrypted with a master password: AES-256 in GCM
mode, the key derived from the password with PBKDF2 (HmacSHA256, many rounds, random salt).
A wrong master password, or a file that was changed.
Makes the text in a part of the scene selectable with the mouse and copyable, which labels cannot do.
The global settings: general, appearance, Git, diff and merge, network.
Persists the settings as one small properties file in the portable configuration directory
(see
AppDirs).Turns what the Git backend returned (
RepositorySnapshot) into the view models of the UI.A piece of a line: the characters
start (included) to end (excluded) are of this kind.Puts the divider of a two-part
SplitPane at a stored fraction of its size (so both sides keep their share when the
window is resized) and reports the new fraction shortly after the user stopped dragging, so it can be remembered.Makes the height of the lower side of a vertical
SplitPane adjustable by dragging the divider: it starts at a
stored height, keeps that height when the window is resized (only the upper side grows or shrinks) and reports the new
height shortly after the user stopped dragging, so it can be remembered.Makes the width of one side of a
SplitPane adjustable by dragging the divider: it starts at a stored
width, keeps that width when the window is resized (only the other side grows or shrinks) and reports the new
width shortly after the user stopped dragging, so it can be remembered.One stash: its label, the files and when it was made.
A stash shown like a commit (feature 55): its files on the left (the untracked ones that were stashed too are marked) and the changes of the
chosen file on the right.
What the view reads from the repository and what its buttons do.
The statistics of the open repository (feature 8), shown in the overview: activity calendar, weekdays and hours, committers, hot spots,
months, languages and files that change together.
The JavaFX application: loads the settings, creates the services (Git backend, credentials, repository service), the main window
and its scene, restores the size of the window, and saves what has to be kept when it ends.
Descriptions that were already asked for, one small file each in the configuration folder, so asking again is free.
The "Buy me a coffee" link (feature 19): a small, quiet way to support the author.
The Buy Me a Coffee cup (feature 19) and the yellow button it sits in, as on the service's own buttons.
Whether the operating system is set to a light or a dark appearance, for the theme "Automatic".
Opens a terminal in a folder (feature 11).
What to run.
Starts a command in a folder.
A terminal program Stemma knows how to start in a folder.
The built-in colour themes.
Colour of the dot shown in a toast.
The colours of the toolbar icons of a repository (setting "Toolbar icons"): commit green, pull and push blue, fetch yellow, branch
bright blue, merge orange, discard dark orange, tag purple, terminal black; stash, Git Flow, settings and the file manager stay grey.
Finds a program for the local AI tool.
Tool tips with translated text.
Shows the message(s) of the selected commit(s) and their translation (feature 7).
Asks for the translation:
ask(language, done) calls done(parts or null, problem) on the UI thread.Moves a file to the operating system's trash instead of deleting it, where there is one.
Small factory helpers for the controls used throughout the UI.
Takes a git remote URL apart: the transport, the host and the user name in it.
https, ssh, … ; scp-like addresses are ssh; empty for a local path.The user mapping (feature 26): which identities (e-mail addresses and names) are one person.
One person.
UI settings.
How the commit graph is drawn.
How the library shows the repositories.
How a repository is laid out.
Opens a web address in the user's default browser.
The second way: ask the desktop.
Keeps the size the window has when it is in its normal state (feature 62), so it can be saved when Stemma ends: a maximized, full-screen
or minimized window does not count, and one that is closed while maximized leaves the size it had before.
What the memory asks of the window.
How big the window is when Stemma starts (feature 62): what the last run left, if it fits on the screen, else three quarters of the
screen, and never bigger than what can be seen.
The viewable part of a screen.
A window size.