]> git.ipfire.org Git - thirdparty/git.git/commit
notes: teach the -e option to edit messages in editor
authorAbraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Mon, 21 Oct 2024 18:12:20 +0000 (18:12 +0000)
committerTaylor Blau <me@ttaylorr.com>
Mon, 21 Oct 2024 19:52:48 +0000 (15:52 -0400)
commitdab0b9e176d64f7687029b176d96eddfbf74db64
treeacf1be4f525845907cc2d842c476af4b5267b53a
parent34b6ce9b30747131b6e781ff718a45328aa887d0
notes: teach the -e option to edit messages in editor

Notes can be added to a commit using:
- "-m" to provide a message on the command line.
- -C to copy a note from a blob object.
- -F to read the note from a file.
When these options are used, Git does not open an editor,
it simply takes the content provided via these options and
attaches it to the commit as a note.

Improve flexibility to fine-tune the note before finalizing it
by allowing the messages to be prefilled in the editor and edited
after the messages have been provided through -[mF].

Signed-off-by: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Documentation/git-notes.txt
builtin/notes.c
t/t3301-notes.sh