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

Re: [PATCH] rev-list: make --max- and --min-age a bit more usable.

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 3, 2005, 03:11 UTC
Message-ID
<Pine.LNX.4.64.0511021908220.27915@g5.osdl.org>
In-Reply-To
<7vbr12swj3.fsf_-_@assigned-by-dhcp.cox.net>
On Wed, 2 Nov 2005, Junio C Hamano wrote:
Show 8 quoted lines
> 
> > 	git-whatchanged -p --pretty=short --since="2 weeks ago" v0.99.8..v0.99.9 Makefile
> >
> > is a valid query
> 
> Well, it is not a valid query ;-) Nobody implemented --since
> yet, but you could spell it --max-age.  It would not grok "2
> weeks ago" though.
Have you tried it? 
"--since" _works_.
All the magic is in "git-rev-parse". Try it.
> With the attached patch, you could at least do:
> 
> 	git log --max-age='2005-10-25' v0.99.8..v0.99.9 Makefile
No. Really. _try_ it. You can do
	git log --since="September 25"
And ItJustWorks(tm).

No patches needed. Anywhere. It's worked for quite a long time too. Since commit c1babb1d65e034a058c14379eabec8eb374757ca, to be exact.

    [PATCH] Teach "git-rev-parse" about date-based cut-offs
Just use it.
		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 25 of 26 in “GIT 0.99.9”
  1. Junio C HamanoOct 30, 2005
  2. A Large Angry SCMOct 30, 2005
  3. Junio C HamanoOct 30, 2005
  4. A Large Angry SCMOct 30, 2005
  5. Johannes SchindelinOct 30, 2005
  6. Linus TorvaldsOct 30, 2005
  7. rev-list --sparse?Junio C Hamano, Oct 30, 2005
  8. Linus TorvaldsOct 30, 2005
  9. Junio C HamanoOct 30, 2005
  10. Wolfgang DenkOct 30, 2005
  11. Junio C HamanoOct 30, 2005
  12. Wolfgang DenkOct 30, 2005
  13. Junio C HamanoOct 30, 2005
  14. Wolfgang DenkOct 30, 2005
  15. Ryan AndersonOct 30, 2005
  16. Junio C HamanoOct 30, 2005
  17. H. Peter AnvinOct 30, 2005
  18. Linus TorvaldsOct 31, 2005
  19. Junio C HamanoOct 31, 2005
  20. Linus TorvaldsOct 31, 2005
  21. Date-based limits (Was Re: GIT 0.99.9)Daniel Barkalow, Oct 31, 2005
  22. Junio C HamanoNov 1, 2005
  23. Daniel BarkalowNov 1, 2005
  24. rev-list: make --max- and --min-age a bit more usable.Junio C Hamano, Nov 2, 2005
  25. Linus TorvaldsNov 3, 2005
  26. Junio C HamanoNov 3, 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.