Work in progress. This page is not finished and has not had its final read-through, so some of it may be wrong or missing. If you find something, open an issue.
Updated 14 November 2026
On this page
Git and comparisons
The vs ... menu on the editor ribbon sets what the document is compared against: the review baseline, a saved version, or a git commit. Everything except the review baseline is a read-only comparison. Wymark never writes to .git or the index: no commit, no branch change.
Comparisons
The vs menu
| Row | Compares against |
|---|---|
| Review baseline | The baseline, with accept and reject. Once seeded from a commit, the row names it (a1b2c3, main since branching). |
| Previous baselines | Up to three baselines you recently moved away from. Shown once one exists. |
| Last saved version | The most recent version. |
| All versions | Any saved version, named ones first. |
| Review from here… | Makes the current comparison the review baseline. |
| Version history… | Opens the version history, for anything the menu does not list. |
Inside a git repository the menu has a Git section, headed by the branch name:
| Row | Compares against |
|---|---|
| Last commit | What is uncommitted. |
| Previous commit | The commit before the last one that changed this document. |
<base>, since branching |
What this branch has changed. The same diff GitHub shows on a pull request. |
<base>, now |
The base branch as it is now. |
The base branch is detected, and can be set per repository in the Versions panel. While a comparison is showing, an x on the vs ... button returns to the review baseline.
Reading a comparison
| Control | In a comparison |
|---|---|
| Accept | Disabled. A commit or a version cannot move. Use Review from here. |
| x | Restores: rewrites that place to what the reference has there. One undo step. |
Against a commit or a branch, the Formatted view names who made each change: author, short commit hash and day, with + uncommitted where part is not committed. The review itself never names an author, and neither does the Source view.
A comparison shows everything that differs from the reference, including changes you already accepted in the review.
Review from here
- Replaces the baseline. The document does not change. In git terms the baseline plays the role of
HEAD, and this isgit reset --softto what you picked, with the working tree untouched. - Asks first if a review is pending.
- Undo does not reverse it. The old baseline is saved as a version labelled Was baseline and listed under Previous baselines.
- Picking a previous baseline continues where you left off: accepted changes stay accepted. Picking the original commit again starts the review over.
Git in the side panels
Changed files in the Files panel
In a repository, the Files panel marks each document that differs from the last commit: git’s line counts (+12 −2) at the right of the row, or a word where counts mean nothing (new, deleted, renamed, modified for a picture). n changed on the branch line shows only those files and the folders above them. It is a filter: it hides rows and never changes what a row says.
| vs Last commit | What the panel compares against. Pick Previous commit, an earlier commit, or main, since branching to see everything changed since then, committed or not. The panel’s Previous commit is the commit before HEAD. |
| A pick | Shows every open document from the same repository against it, until you pick something in that document’s own vs menu. The x beside it clears the pick. It does not turn the filter on. |
| A branch icon | Marks, in Earlier commits, where another branch forks from yours, local or as of your last fetch. Pick it to compare with that branch since branching, for a pull request into a branch other than main. The vs button then shows the fork commit’s hash. |
| A row, while filtering | Opens the document with vs set to the same reference. A new or renamed file opens as it is. With the filter off, a row opens the document as you left it. |
| A deleted file | Listed while filtering, struck through. Clicking it opens its last committed text as an unsaved document. |
While filtering, the status chip of a changed document has a file 2/3 row. Its arrows open the previous or next changed file, and so do ⌃⌘↑Ctrl+Alt+Shift+Up and ⌃⌘↓Ctrl+Alt+Shift+Down. Deleted files are skipped.
Search and Reveal in Files respect the filter. The list follows the branch: commit in a terminal and the count drops to zero.
The branch under the folder’s name is the folder’s; the vs ... menu names the branch of the document you are editing. The two differ when a tab comes from another checkout, a worktree or a submodule.
The Versions panel
A Git filter joins All and Named. It lists:
- every commit in the current branch’s history of this file, following renames once they are committed, the newest marked HEAD and the branch point marked;
- one row per other branch whose copy of the file differs.
All shows Wymark’s versions and the commits together, newest first.
A commit can be previewed, compared, restored (the current state is saved first as Pre-restore), reopened as a review copy, or used with Review from here.
When something is missing
When the file goes away
If you switch to a branch without the file, or delete or move it outside Wymark:
| The document | Stays open and writable. The status chip reads File missing and the tab has a dot. |
| The file | Is not written back, so a later checkout is not blocked. Your typing is kept, also across closing the tab or quitting. |
| When the file returns unchanged | Your text is written to it. |
| When it returns with other changes | The two are merged. Your text is saved first as a version tagged Pre-merge. |
| Right-click the tab > Save as… | Moves the document, with its versions, review and comments, to a path you choose. Its pictures folder stays. |
| Right-click the tab > Recreate the file here | Writes the file back where it was. |
When git is not available
No Git section appears outside a repository. Four other states to recognise:
- git is not installed;
- git refuses the repository, most often for “dubious ownership”;
- the folder or document was opened through a symbolic link, so git knows it by another path, which the tooltip names;
- the file has no commits yet.
Comments and pull requests
Wymark comments are stored in the file and travel with a commit. GitHub does not show them, a teammate needs Wymark to reply to one, and there is no sync with pull request comments.
# Git and comparisons
The `vs ...` menu on the editor ribbon sets what the document is compared against: the [review](/docs/concepts/review) baseline, a saved version, or a git commit. Everything except the review baseline is a read-only comparison. Wymark never writes to `.git` or the index: no commit, no branch change.
<figure class="docs-shot">
<img class="docs-shot-light" src="03-git-assets/compare-menu-light.png" width="312"
alt="The vs Review button on the editor ribbon with its menu open: Review baseline (checked),
Last saved version, All versions, a Git section naming the repository handbook and the branch main, listing Last commit and
Previous commit each with their short hash, Review from here (greyed out), and Version history.">
<img class="docs-shot-dark" src="03-git-assets/compare-menu-dark.png" width="312"
alt="The same menu in dark mode.">
</figure>
## Comparisons
### The vs menu
| Row | Compares against |
| --- | --- |
| **Review baseline** | The baseline, with accept and reject. Once seeded from a commit, the row names it (`a1b2c3, main since branching`). |
| **Previous baselines** | Up to three baselines you recently moved away from. Shown once one exists. |
| **Last saved version** | The most recent version. |
| **All versions** | Any saved version, named ones first. |
| **Review from here...** | Makes the current comparison the review baseline. |
| **Version history...** | Opens the version history, for anything the menu does not list. |
Inside a git repository the menu has a **Git** section, headed by the branch name:
| Row | Compares against |
| --- | --- |
| **Last commit** | What is uncommitted. |
| **Previous commit** | The commit before the last one that changed this document. |
| **`<base>`, since branching** | What this branch has changed. The same diff GitHub shows on a pull request. |
| **`<base>`, now** | The base branch as it is now. |
The base branch is detected, and can be set per repository in the Versions panel. While a comparison is showing, an x on the `vs ...` button returns to the review baseline.
<figure class="docs-shot">
<img class="docs-shot-light" src="03-git-assets/compare-reset-light.png" width="424"
alt="The vs button reading vs 114abdf, a commit, with an x joined to its right edge. The pointer is on the x,
with the tooltip Back to the review baseline, the only diff accept works on.">
<img class="docs-shot-dark" src="03-git-assets/compare-reset-dark.png" width="424"
alt="The same button in dark mode.">
</figure>
### Reading a comparison
| Control | In a comparison |
| --- | --- |
| **Accept** | Disabled. A commit or a version cannot move. Use **Review from here**. |
| **x** | Restores: rewrites that place to what the reference has there. One undo step. |
Against a commit or a branch, the Formatted view names who made each change: author, short commit hash and day, with `+ uncommitted` where part is not committed. The review itself never names an author, and neither does the Source view.
<figure class="docs-shot">
<img class="docs-shot-light" src="03-git-assets/compare-card-light.png" width="220"
alt="A change card titled Replaced, with the struck-out old text, a greyed-out accept tick and a live x,
and under it the author line: Jane Doe, a short commit hash, and the commit's date and time.">
<img class="docs-shot-dark" src="03-git-assets/compare-card-dark.png" width="220"
alt="The same card in dark mode.">
</figure>
A comparison shows everything that differs from the reference, including changes you already accepted in the review.
### Review from here
- Replaces the baseline. The document does not change. In git terms the baseline plays the role of `HEAD`, and this is `git reset --soft` to what you picked, with the working tree untouched.
- Asks first if a review is pending.
- Undo does not reverse it. The old baseline is saved as a version labelled **Was baseline** and listed under Previous baselines.
- Picking a previous baseline continues where you left off: accepted changes stay accepted. Picking the original commit again starts the review over.
## Git in the side panels
### Changed files in the Files panel
In a repository, the Files panel marks each document that differs from the last commit: git's line counts (`+12 −2`) at the right of the row, or a word where counts mean nothing (`new`, `deleted`, `renamed`, `modified` for a picture). `n changed` on the branch line shows only those files and the folders above them. It is a filter: it hides rows and never changes what a row says.
<figure class="docs-shot">
<img class="docs-shot-light" src="03-git-assets/files-filter-light.png" width="288"
alt="The Files panel for a folder named handbook on branch main, with the 4 changed button pressed and vs Last commit under it.
Only changed files are listed: equipment.md marked new, first-week.md marked +12 −2, remote-work.md marked +2,
and travel.md struck through and marked deleted.">
<img class="docs-shot-dark" src="03-git-assets/files-filter-dark.png" width="288"
alt="The same panel in dark mode.">
</figure>
| | |
| --- | --- |
| **vs Last commit** | What the panel compares against. Pick **Previous commit**, an earlier commit, or `main, since branching` to see everything changed since then, committed or not. The panel's Previous commit is the commit before HEAD. |
| **A pick** | Shows every open document from the same repository against it, until you pick something in that document's own `vs` menu. The x beside it clears the pick. It does not turn the filter on. |
| **A branch icon** | Marks, in Earlier commits, where another branch forks from yours, local or as of your last fetch. Pick it to compare with that branch since branching, for a pull request into a branch other than `main`. The `vs` button then shows the fork commit's hash. |
| **A row, while filtering** | Opens the document with `vs` set to the same reference. A new or renamed file opens as it is. With the filter off, a row opens the document as you left it. |
| **A deleted file** | Listed while filtering, struck through. Clicking it opens its last committed text as an unsaved document. |
<figure class="docs-shot">
<img class="docs-shot-light" src="03-git-assets/files-ref-menu-light.png" width="564"
alt="The vs Last commit menu open in the Files panel, listing Last commit (checked) and Previous commit with their short hashes,
and Earlier commits opened to the right over the editor, each commit with its date, hash and subject.">
<img class="docs-shot-dark" src="03-git-assets/files-ref-menu-dark.png" width="564"
alt="The same menu in dark mode.">
</figure>
While filtering, the status chip of a changed document has a `file 2/3` row. Its arrows open the previous or next changed file, and so do `⌃⌘↑` and `⌃⌘↓`. Deleted files are skipped.
<figure class="docs-shot">
<img class="docs-shot-light" src="03-git-assets/chip-file-row-light.png" width="243"
alt="The status chip with three rows: 6 changes vs last commit, file 2/3 vs last commit, and 95 words.
The pointer is on the file row's next arrow, with the tooltip Next changed file (Control-Command-Down).">
<img class="docs-shot-dark" src="03-git-assets/chip-file-row-dark.png" width="243"
alt="The same chip in dark mode.">
</figure>
Search and **Reveal in Files** respect the filter. The list follows the branch: commit in a terminal and the count drops to zero.
The branch under the folder's name is the folder's; the `vs ...` menu names the branch of the document you are editing. The two differ when a tab comes from another checkout, a worktree or a submodule.
### The Versions panel
A **Git** filter joins **All** and **Named**. It lists:
- every commit in the current branch's history of this file, following renames once they are committed, the newest marked HEAD and the branch point marked;
- one row per other branch whose copy of the file differs.
**All** shows Wymark's versions and the commits together, newest first.
<figure class="docs-shot">
<img class="docs-shot-light" src="03-git-assets/versions-panel-light.png" width="288"
alt="The Versions panel with the All filter on. Three versions from today, each with its time and a tag: Accepted,
Saved with the name Sent to the team, and Opened. Below them two git commits, each with its date, short hash,
subject and author Jane Doe.">
<img class="docs-shot-dark" src="03-git-assets/versions-panel-dark.png" width="288"
alt="The same panel in dark mode.">
</figure>
A commit can be previewed, compared, restored (the current state is saved first as *Pre-restore*), reopened as a review copy, or used with Review from here.
## When something is missing
### When the file goes away
If you switch to a branch without the file, or delete or move it outside Wymark:
| | |
| --- | --- |
| **The document** | Stays open and writable. The status chip reads `File missing` and the tab has a dot. |
| **The file** | Is not written back, so a later checkout is not blocked. Your typing is kept, also across closing the tab or quitting. |
| **When the file returns unchanged** | Your text is written to it. |
| **When it returns with other changes** | The two are merged. Your text is saved first as a version tagged **Pre-merge**. |
| **Right-click the tab > Save as...** | Moves the document, with its versions, review and comments, to a path you choose. Its pictures folder stays. |
| **Right-click the tab > Recreate the file here** | Writes the file back where it was. |
### When git is not available
No Git section appears outside a repository. Four other states to recognise:
- git is not installed;
- git refuses the repository, most often for "dubious ownership";
- the folder or document was opened through a symbolic link, so git knows it by another path, which the tooltip names;
- the file has no commits yet.
## Comments and pull requests
Wymark comments are stored in the file and travel with a commit. GitHub does not show them, a teammate needs Wymark to reply to one, and there is no sync with pull request comments.