Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

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

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:10

Possibly related (same subject, not in this thread)


On Wed, 2 Nov 2005, Junio C Hamano wrote:
quoted
	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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help