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

Re: Joining cg-*-id

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 20, 2005, 00:50 UTC
Message-ID
<Pine.LNX.4.58.0509191746130.2553@g5.osdl.org>
In-Reply-To
<20050919225422.GG18320@pasky.or.cz>
On Tue, 20 Sep 2005, Petr Baudis wrote:
> 
> Currently, in Cogito it is basically:
> 
> 	git-rev-list --min-age="$(date --date=$id +%s)" --max-count=1 HEAD

Yes, for git-rev-list it makes sense, because that already more or less "serializes" things by date.

> But that semantics sucks, and I wouldn't mind changing it at all. I
> think taking the previous commit works for everything but the start of
> cg-log range, and it is how CVS behaves.

The thing is, it may have sensible behaviour for CVS, but only because CVS doesn't have any notion of concurrent development (even a branch isn't concurrent - it's totally separate, and when you merge it, it becomes just one big diff at the time of the merge).

So I'd love to have
	git diff yesterday..

but the fact is, there's no sensible semantics for it. _which_ yesterday? There might be five different points that are "close to 24 hours ago", along five different paths backwards in the history.

I suspect that the date-based thing really doesn't make sense as a revision, only as a git log cut-off (ie the "--min-age=" flag is as close to sensibility as you can get).

		Linus
Previous: Petr BaudisNext: Petr Baudis
Message 5 of 22 in “Joining cg-*-id”
  1. Pavel RoskinSep 19, 2005
  2. Petr BaudisSep 19, 2005
  3. Linus TorvaldsSep 19, 2005
  4. Petr BaudisSep 19, 2005
  5. Linus TorvaldsSep 20, 2005
  6. Petr BaudisSep 20, 2005
  7. Linus TorvaldsSep 20, 2005
  8. Petr BaudisSep 20, 2005
  9. Linus TorvaldsSep 20, 2005
  10. Linus TorvaldsSep 20, 2005
  11. Paul MackerrasSep 21, 2005
  12. Linus TorvaldsSep 21, 2005
  13. Paul MackerrasSep 21, 2005
  14. Petr BaudisSep 21, 2005
  15. Matthias UrlichsSep 20, 2005
  16. Junio C HamanoSep 20, 2005
  17. Matthias UrlichsSep 20, 2005
  18. Paul MackerrasSep 20, 2005
  19. Pavel RoskinSep 19, 2005
  20. Petr BaudisSep 19, 2005
  21. Pavel RoskinSep 20, 2005
  22. Petr BaudisSep 20, 2005

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.