Skip to content

Adds git notes support via ${notes} format token - closes #2432#5085

Open
Mattwmaster58 wants to merge 1 commit intogitkraken:mainfrom
Mattwmaster58:feature/git-notes-support
Open

Adds git notes support via ${notes} format token - closes #2432#5085
Mattwmaster58 wants to merge 1 commit intogitkraken:mainfrom
Mattwmaster58:feature/git-notes-support

Conversation

@Mattwmaster58
Copy link
Copy Markdown

Description

Add basic support for ${notes} token in every commit token context I could think of. There was a bit of complexity because depending on where we get the commit info from, the note info can come for free (log), or requires a git invocation (blame). See: #2432

This is my first time in the codebase, a lot of this was done with AI - though I did review all the changed lines and tested everything manually myself.

Demo

image image

Checklist

  • I have followed the guidelines in the Contributing document
  • My changes follow the coding style of this project
  • My changes build without any errors or warnings
  • My changes have been formatted and linted
  • My changes include any required corresponding changes to the documentation (including CHANGELOG.md and README.md)
  • My changes have been rebased and squashed to the minimal number (typically 1) of relevant commits
  • My changes have a descriptive commit message with a short title, including a Fixes $XXX - or Closes #XXX - prefix to auto-close the issue that your PR addresses

@Mattwmaster58 Mattwmaster58 force-pushed the feature/git-notes-support branch from 9f5fddd to 14bf396 Compare March 30, 2026 18:16


- Adds ${notes} token to CommitFormatter for inline blame, hovers, and status bar

- Adds %N to log parser commits mapping for notes from git log

- Adds getCommitNotes() sub-provider method using git notes show

- Adds ensureNotes() on GitCommit with @gate() and cancellation support

- Adds notes to settings preview and settings HTML token documentation

- Updates logParser tests for new notes field
@Mattwmaster58 Mattwmaster58 force-pushed the feature/git-notes-support branch from 14bf396 to 9176797 Compare March 30, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant