Skip to content

relative future date

Junio C Hamano git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2date: refactor the relative date logic from presentationdate.c+127 -430 replies
2/2date: show relative dates in the futuredate.c t/t0006-date.sh+24 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] relative future date
Quoted 8 lines · Jundong Xue
tomxue@ubuntu:~/mycode/life$ git todo
* d768da9 - (in the future: 3 hours later) Meeting with vendor
* 5fcd556 - (in the future: 12 days later) Take my personal ho
* 9dd280b - (in the future: 11 months later)
* 4680099 - (in the future: 9 months later)
* 59d5266 - (in the future: 8 months later)
* b5308da - (in the future: 7 months later)
...

I was re-reading the backlog and after looking at it again, I do not think what the patch tries to do is a bad thing per-se. There are changes I want to see _how_ it is done, though.

Especially, the duplication of the exact same logic in the future and in the past was an unmaintainable mess.

Here is an attempt to clean it up.

Opinions? If the list finds this is a worthwhile thing to do (I am neutral), it needs help from i18n people to mark format messages up properly again.

Thanks.

Junio C Hamano (2):
date: refactor the relative date logic from presentation
date: show relative dates in the future

 date.c          | 187 +++++++++++++++++++++++++++++++++++++++++++-------------
 t/t0006-date.sh |   2 +
 2 files changed, 146 insertions(+), 43 deletions(-)
Signature · 1 line
1.7.12.rc3.69.gaf0166d