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

[PATCH 0/4] approxidate for "git commit --date=foo"

From
Jeff King <peff@peff.net>
Date
May 2, 2014, 01:03 UTC
Message-ID
<20140502010328.GA30556@sigill.intra.peff.net>
In-Reply-To
<20140501220639.GD14441@sigill.intra.peff.net>
On Thu, May 01, 2014 at 06:06:39PM -0400, Jeff King wrote:
Show 18 quoted lines
> > I think the original rationale was that it's OK for us to allow some
> > sloppiness when _viewing_ commits, since you will generally notice the
> > problem. But when making commits, it's better to be careful, since you
> > may be setting the sha1 in stone.
> > 
> > These days we have two tools that could help:
> > 
> >   1. approxidate_careful will do a regular approxidate, but keep track
> >   of whether we found anything even remotely useful. That doesn't mean
> >   you can't still get unexpected results, but at least some truly
> >   useless cases return errors.
> > 
> >   2. For commits with a different author and committer, we mention the
> >   author name in the post-commit summary. We could do the same with a
> >   timestamp that was given (i.e., mentioning it in a standard format)
> >   to give the user another opportunity to double-check what we parsed.
> 
> I think it would make sense if we followed both of those points.
Here are patches to do so.
  [1/4]: commit: use split_ident_line to compare author/committer
  [2/4]: pretty: make show_ident_date public
  [3/4]: commit: print "Date" line when the user has set date
  [4/4]: commit: accept more date formats for "--date"
-Peff
Previous: Jeff KingNext: Jeff King
Message 4 of 9 in “[RFD] use approxidate for "git commit --date=xyz"?”
  1. Linus TorvaldsApr 30, 2014
  2. Junio C HamanoApr 30, 2014
  3. Jeff KingMay 1, 2014
  4. 0/4 approxidate for "git commit --date=foo"Jeff King, May 2, 2014
  5. 1/4 commit: use split_ident_line to compare author/committerJeff King, May 2, 2014
  6. 2/4 pretty: make show_ident_date publicJeff King, May 2, 2014
  7. 3/4 commit: print "Date" line when the user has set dateJeff King, May 2, 2014
  8. 4/4 commit: accept more date formats for "--date"Jeff King, May 2, 2014
  9. Peter KreftingMay 7, 2014

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.