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
Jeff King <peff@peff.net>
Date
Mar 8, 2011, 01:16 UTC
Message-ID
<20110308011646.GA21278@sigill.intra.peff.net>
In-Reply-To
<7vzkp6zclw.fsf@alter.siamese.dyndns.org>
On Mon, Mar 07, 2011 at 04:20:59PM -0800, Junio C Hamano wrote:
Show 9 quoted lines
> > That being said, with --reset-author I have never needed --date, so I
> > don't personally care if it gets done or not.
> 
> In short, should I take that the resolution of this issue is "I didn't
> know about --reset-author and asking for --date=loose was an X-Y problem"?
> 
> I agree with you that we would not want to loosen the specification side
> (i.e. "commit --date=" as opposed to the selector side "log --since=")
> unless we absolutely have to.

It is up to Dirk to say whether it solves his particular problem or not. But thinking on it more, --date=now does encourage a bit of a wrong workflow. 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.

-Peff
Previous: Junio C HamanoNext: Andreas Schwab
Message 4 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.