Re: git notes question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :/



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux