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

Re: strange date generated by git-format-patch

From
Theodore Tso <tytso@mit.edu>
Date
Feb 24, 2007, 13:08 UTC
Message-ID
<20070224130839.GC4380@thunk.org>
In-Reply-To
<7vodnjzyvq.fsf@assigned-by-dhcp.cox.net>
On Sat, Feb 24, 2007 at 01:30:17AM -0800, Junio C Hamano wrote:
Show 12 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> >> That is just a fake random date to make the Unix-From line recognizable 
> >> by common MUA and does not have anything to do with your commit objects.
> >
> I do not think it is worth changing it.  Who's hurting with the
> current behaviour?  In other words, is it broken?  Unix-From
> lines are there only to separate each piece of e-mail in the
> mbox and otherwise is not used.  send-email, am, nor imap-send
> should care anything beyond the leading "From ", and mailsplit
> validates only that what's around the last colon near the end of
> line looks like time and year.

The only potential problem with it is that some MUA's (like mutt for example) sort by the From date by default. You can force it to list the patches in an unsorted order (via 'Ou'), but it might be nice if the patches date in the From field was the date that the patches were generated, with the seconds field bumped so that the patches in a series were guaranteed to have monotonically increasing dates. It's only a minor point, though.

						- Ted
Previous: Junio C HamanoNext: Jeff King
Message 5 of 7 in “strange date generated by git-format-patch”
  1. johan defriesFeb 23, 2007
  2. Junio C HamanoFeb 23, 2007
  3. Johannes SchindelinFeb 23, 2007
  4. Junio C HamanoFeb 24, 2007
  5. Theodore TsoFeb 24, 2007
  6. Jeff KingFeb 24, 2007
  7. Johannes SchindelinFeb 24, 2007

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.