Re: git notes question

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

 



On Thu, 2022-03-10 at 09:52 -0800, Junio C Hamano wrote:
> Nuno Sá <noname.nuno@xxxxxxxxx> writes:
> 
> > > Well, this time it was "Notes:" label, but the next person who
> > > wants to see a deviation from the canned "email" format would
> > > want a
> > > deviation different from yours.  Perhaps they want a different
> > > way
> > 
> > I'm surely missing something but I'm not sure this is specific to
> > the
> > email format? It's just that git-notes by default will always
> > either
> > append the "Notes:" or "Notes (<refname>):" independent of the
> > predefined format you use. The only way to stop it from doing that
> > is,
> > apparently, by using your own --format=<template>...
> > ...
> > What I was asking was just if there was a way to not use these
> > default
> > strings. I don't think this would open all kind of deviations.
> 
> Not limited to the email format.  "git log" will always prefix
> "Author: " before the commit author name, "Date: " date with extra
> paddingbefore the author, indents the log message by 4 spaces, adds
> "Notes (refname):" before notes, and indentation is given before the
> contents of the notes.  There are many things, other than the
> presence of the "Notes" label, that people may want to customize in
> the output from the commands in the "git log" family, including "git
> format-patch".
> 

Alright... Now I got it. There's already lot of things that 'git log'
and friends print by default that there's no reason to give special
treatment to "Notes:". That would indeed open the box for all kind of
request.

Having a way to mimic email (or others) template in --format would
indeed be nice though :).

- Nuno Sá
> 




[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