git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: git send-email sets date

From
Philip Oakley <philipoakley@iee.org>
Date
Jan 28, 2018, 15:57 UTC
Message-ID
<001601d39850$a0a48ae0$e1eda0a0$@iee.org>
In-Reply-To
<20180128151536.GE431130@genre.crustytoothpaste.net>
Behalf Of brian m. carlson
Show 23 quoted lines
> On Fri, Jan 26, 2018 at 06:32:30PM +0100, Michal Suchánek wrote:
> > git send-email sets the message date to author date.
> >
> > This is wrong because the message will most likely not get delivered
> > when the author date differs from current time. It might give slightly
> > better results with commit date instead of author date but can't is
> > just skip that header and leave it to the mailer?
> >
> > It does not even seem to have an option to suppress adding the date
> > header.
> 
> I'm pretty sure it's intended to work this way.
> 
> Without the Date header, we have no way of providing the author date
> when sending a patch.  git am will read this date and use it as the
> author date when applying patches, so if it's omitted, the author date
> will be wrong.
> 
> If you want to send patches with a different date, you can always insert
> the patch inline in your mailer using the scissors notation, which will
> allow your mailer to insert its own date while keeping the patch date
> separate.
> --

Michal, you may want to hack up an option that can automatically create that format if it is of use. I sometimes find the sort order an issue in some of my mail clients. -- Philip

Previous: brian m. carlsonNext: Theodore Ts'o
Message 3 of 8 in “git send-email sets date”
  1. Michal SuchánekJan 26, 2018
  2. brian m. carlsonJan 28, 2018
  3. Philip OakleyJan 28, 2018
  4. Theodore Ts'oJan 28, 2018
  5. Junio C HamanoJan 30, 2018
  6. Ævar Arnfjörð BjarmasonJan 28, 2018
  7. Eric WongJan 29, 2018
  8. Junio C HamanoJan 30, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.