Code

never fallback relative times to absolute
authorJeff King <peff@peff.net>
Tue, 24 Feb 2009 05:42:16 +0000 (00:42 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Feb 2009 08:44:43 +0000 (00:44 -0800)
commit10edf37796badc58239eb3e5d1e8e608f6e1473c
tree7b1a5931d50bb76dff0901cb08c8e4c6d589d8b3
parentd43c07b8ee6684a0df8636a0c849605f0ffc066f
never fallback relative times to absolute

Previously, for dates older than 12 months we fell back to just giving the
absolute time.  This can be a bit jarring when reading a list of times.

Instead, let's switch to "Y years, M months" for five years, and then just
"Y years" after that.

No particular reason on the 5 year cutoff except that it seemed reasonable
to me.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c