vscode-git-graph icon indicating copy to clipboard operation
vscode-git-graph copied to clipboard

Add possibility to display git notes

Open ppkwiatkowski opened this issue 3 years ago • 4 comments

As in the title, I would like to have an option to display notes (git log --notes option in git) in Git Graph UI.

ppkwiatkowski avatar Mar 09 '21 15:03 ppkwiatkowski

Hi @ppkwiatkowski,

Thank you for raising this feature request! (I’d never heard of Git notes before)

There are two main ways we could go about supporting notes in Git Graph:

  1. Display them in the Commit Details View, after the body of the commit on the left hand side.
  2. Indicate them on the commits in the table itself (similar to branches and tags), and (1). Right-clicking on the note would then allow a context menu of note actions (e.g. view, edit, and delete). Additionally, an “Add Note” action would also be added to the commit context menu. This would enable both the display and management of notes.

Although both options appear to meet your request, I think option 2 is probably the best approach for completeness.

Note to other users reading this: If you actively use Git notes and would like it to be supported in Git Graph, please like the first comment in this thread, so I can gauge community interest.

mhutchie avatar Mar 09 '21 21:03 mhutchie

@mhutchie thanks for your answer!

For starter it would be cool to display them as described in 1. (this is how standard git log works) if the GIT_NOTES_DISPLAY_REF env variable or notes.displayRef config setting is set. But having 2. would be even cooler.

ppkwiatkowski avatar Mar 10 '21 16:03 ppkwiatkowski

Hi @mhutchie,

Do you have any plans for this feature?

It would be great to have it in Git Graph :D

sinux-l5d avatar Jun 14 '22 13:06 sinux-l5d

@sinux-l5d @ppkwiatkowski I created this extension for using git notes in vscode.

jrosco avatar Jul 23 '23 23:07 jrosco