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

Re: Joining cg-*-id

From
Petr Baudis <pasky@suse.cz>
Date
Sep 19, 2005, 22:54 UTC
Message-ID
<20050919225422.GG18320@pasky.or.cz>
In-Reply-To
<Pine.LNX.4.58.0509191505470.2553@g5.osdl.org>

Dear diary, on Tue, Sep 20, 2005 at 12:16:03AM CEST, I got a letter where Linus Torvalds <torvalds@osdl.org> told me that...

> How does the date thing work? It sounds like something horribly ambiguous, 
> but hey, maybe some useful semantics could be found.
Currently, in Cogito it is basically:
	git-rev-list --min-age="$(date --date=$id +%s)" --max-count=1 HEAD
The point is that you can then say
	cg-log -r yesterday

to see all the changes which happenned during the last day, and such (so it is really useful to have the syntactic power of date(1) available).

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. And with cg-log, you'll just have one commit more, not so big a deal I think.

Jonas was who introduced this, IIRC, so cc'ing him too.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Linus TorvaldsNext: Linus Torvalds
Message 4 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.