git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nuno Sá" <noname.nuno@gmail.com>
To: Erik Cervin Edin <erik@cervined.in>
Cc: git@vger.kernel.org
Subject: Re: git notes question
Date: Wed, 09 Mar 2022 10:11:16 +0100	[thread overview]
Message-ID: <d204419925e7a4486d9a66a8a0f807a77be6d1b7.camel@gmail.com> (raw)
In-Reply-To: <CA+JQ7M-dkV_AGJ8+4C6HcCN1sQgBtyfYbgUbnQQmYz9So3WwQQ@mail.gmail.com>

Hi Erik,

On Wed, 2022-03-09 at 09:54 +0100, Erik Cervin Edin wrote:
> 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.
> 

Well, this is the one I would like (hoped) that we could do something
about. When I do '--notes' in git-format-patch, I will always see:

```
(Typical git commit)
...

---
(I just wanted "Notes:" to be removed and my notes to start at the
beginning of the line).
Notes: 
	(my notes go here)
...

AFAICT, git-format-patch looks to be using --pretty=email and I think
we can use --pretty in git-format-patch but having to mimic the email
format "by hand" is just painful and I was hoping a better way could
exist.

```
> 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

I'm aware of this and by briefly looking into the source code this
seemed the only way to actually remove those predefined strings from
notes (I was just hoping I was wrong).
> 
Thanks for the feedback!
- Nuno Sá

  reply	other threads:[~2022-03-09  9:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-08 13:08 git notes question Nuno Sá
2022-03-09  8:54 ` Erik Cervin Edin
2022-03-09  9:11   ` Nuno Sá [this message]
2022-03-09 18:02     ` Junio C Hamano
2022-03-10  8:37       ` Nuno Sá
2022-03-10 13:11         ` Erik Cervin Edin
2022-03-10 13:26           ` Nuno Sá
2022-03-10 17:52         ` Junio C Hamano
2022-03-11  9:02           ` Nuno Sá

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d204419925e7a4486d9a66a8a0f807a77be6d1b7.camel@gmail.com \
    --to=noname.nuno@gmail.com \
    --cc=erik@cervined.in \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).