Re: git notes question
- From
- Erik Cervin Edin <erik@cervined.in>
- Date
- Mar 9, 2022, 08:54 UTC
- Message-ID
- <CA+JQ7M-dkV_AGJ8+4C6HcCN1sQgBtyfYbgUbnQQmYz9So3WwQQ@mail.gmail.com>
- In-Reply-To
- <ea67407120aa710f81af048d22be09281ac28107.camel@gmail.com>
Hi Nuno!
> Is there any way to remove the default "Notes:" line on git-notes? I > don't really mind to have it in git log but when generating patches for > instance, I would like my notes to be something like:
Just to be clear, in relation to which command are we talking about?
For git-format-patch there's --notes which I assume doesn't support customization.
For git-log it's possible to customize how notes appear in git-log using the standard way of formatting log messages, pretty format. %N is for the commit notes https://git-scm.com/docs/pretty-formats#Documentation/pretty-formats.txt-emNem For example git log --pretty=format:%h%n%N displays each short hash and it's corresponding note.
It's also possible to use it when generating todos for git-rebase, however, they are written with a prepended new-line which breaks the todo script :/