Git line marks Restricted By HikariSub
by altqx
Marks the Lines added, changed or removed since a git branch, tag or commit.
What it can do
Nothing beyond the basicsNo network, no folders, no other documents.
Every plugin can read and edit the document you’re working on, as one undo step, and keep its own settings.
Read me
Git line marks
Shows what changed in a subtitle file since a git branch, tag or commit, right in the Grid.
- Pick a ref. The Git line marks panel lists the repository's branches (the current one first), its tags and its 50 most recent commits. Search by name, summary or short hash, or type any revision, such as
HEAD~2, and press Enter. - See the marks. Each Line added since then gets a green mark. A changed, moved or retimed Line gets an amber mark. A red mark on a Line means Lines were removed just above it, or below it on the last Line. Hovering a mark names the change, for example "Changed since v1.0: time, style". The panel lists every marked Line too; double-click one to select it in the Grid.
- Refresh. The marks refresh after each save while Refresh when I save is on, and whenever you choose Refresh. Clear marks removes them. They are never written into the file and go when the plugin stops.
Automation › Git line marks has Refresh git line marks and Clear git line marks, which you can give shortcuts in Settings › Shortcuts.
How Lines are matched
The plugin compares ASS Events, not text lines:
- Lines equal in every field, in the same order, are unchanged.
- The same Line somewhere else has moved.
- A Line with the same text, but another time, Style, actor, layer, margins, effect or Comment state, has changed, and the tooltip names those fields.
- Between two unchanged Lines, a Line with the same start, end and Style, or with text at least half alike, or the only Line on each side, has changed.
- A text found far away pairs only when it appears once on each side, so a repeated "Yes." isn't taken for a move.
- What is left was added, or removed.
Needs
- git on PATH (Git for Windows on Windows).
- An ASS file saved in a git repository. Other formats have no Events to match.
- The Read git permission (
vcs.read): the plugin reads the repository's branches, tags and recent commits, and the file as a ref has it. It never changes the repository, and it runs no git of its own: HikariSub runs git read-only.
If git refuses a repository another user owns, the panel shows the git config --global --add safe.directory command to run.
Version history
1.0.1
16 November 2026
- The README no longer names a minimum HikariSub version.
1.0.0
16 November 2026
- Marks the Grid's Lines added, changed or removed since a git branch, tag or commit, with a tooltip naming the change.
- Matches Lines as ASS Events, so a moved or retimed Line reads as changed, not as removed and added.
- Refreshes after each save and on demand; never writes into the file.
HikariSub