Re: [BUG] incorrect search result returned when using git log with a future date parameter

2013-01-30 Thread Junio C Hamano
Caspar Zhang cas...@casparzhang.com writes: A date parsing function should parse _all dates with correctly format_, despite if it's an old date, or the date in the future. When it is fed 2013-02-12, it is ambiguous and approxidate can and should use whatever heuristics (including

Re: [BUG] incorrect search result returned when using git log with a future date parameter

2013-01-30 Thread Jonathan Nieder
Junio C Hamano wrote: When it is fed 2013-02-12, it is ambiguous and approxidate can and should use whatever heuristics (including rejection of future) to guess what the user wanted, but 2013-02-13 cannot be interpreted in any other way, so we should parse it as such. FWIW, if you said

Re: [BUG] incorrect search result returned when using git log with a future date parameter

2013-01-30 Thread Junio C Hamano
Jonathan Nieder jrnie...@gmail.com writes: When it is fed 2013-02-12, it is ambiguous and approxidate can and should use whatever heuristics (including rejection of future) to guess what the user wanted, but 2013-02-13 cannot be interpreted in any other way, so we should parse it as such.