Skip to content

pr-git-2368/airvzxf/feature/date-elapsed-v1

tagged this 30 Jul 07:01
From: Israel Roldan <israel.alberto.rv@gmail.com>

The --date=human format and the %cr/%ch placeholders both produce
a localized English phrase that hides the precise amount of time
that has passed. A commit shown as "2 days ago" may in reality be
1 day 3 hours, or 1 day 23 hours. Switching to %ct and a calculator
solves the problem but is not glance-friendly.

Add an uptime(1)-style elapsed-time format:
  --date=elapsed          --date=elapsed-pad
  39s                     39s
  8h 7m 48s               08h 07m 48s
  1y 11M 5d 13h 5m 13s    01y 11M 05d 13h 05m 13s

The placeholder letter is X because the obvious choice E is already
used for the mailmap-respecting email variants (%aE, %cE, %gE).

Signed-off-by: Israel Roldan <israel.alberto.rv@gmail.com>

Submitted-As: https://lore.kernel.org/git/pull.2368.git.git.1785394879459.gitgitgadget@gmail.com
Assets 2
Loading