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

Re: Q about the date format in "git commit --date=..." and such

From
DSDirk Süsserott <newsletter@dirk.my1.cc>
Date
Mar 8, 2011, 19:20 UTC
Message-ID
<4D768199.80204@dirk.my1.cc>
In-Reply-To
<m2vcztqwcr.fsf@igel.home>
Am 08.03.2011 19:51 schrieb Andreas Schwab:
Show 11 quoted lines
> Jeff King<peff@peff.net>  writes:
>
>> Why would you be resetting the date but _not_ taking ownership? Maybe
>> a reasonable situation for that exists, but I couldn't think of one.
>
> If you are already the author it's not so obvious that you have to reset
> authorship in order to reset the date.  Also, if you are the author, but
> under a different email you may not want to change that.
>
> Andreas.
>

Thank you, Peff and Andreas. Indeed I never tried --reset-author before but it works fine for my problem, as the authorship/email didn't change between the commits. However, I personally think --date=now should work everywhere but if you don't like it I will definitely not insist on it. :-)

In case I _really_ need it, I could use sth. like --date=$(perl -e 'print localtime').

Dirk
Previous: Andreas Schwab
Message 6 of 6 in “Q about the date format in "git commit --date=..." and such”
  1. Dirk SüsserottMar 6, 2011
  2. Jeff KingMar 7, 2011
  3. Junio C HamanoMar 8, 2011
  4. Jeff KingMar 8, 2011
  5. Andreas SchwabMar 8, 2011
  6. Dirk SüsserottMar 8, 2011

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.