From bb6bad18adca2870c5082a8667e8ee165993a147 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Wed, 15 Feb 2023 19:28:43 -0800 Subject: [PATCH] Update docs/config.toml with new way to show relative timestamps --- docs/config.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/config.toml b/docs/config.toml index 1ad1b452f..697fe8212 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -7,9 +7,6 @@ user.email = "YOUR_EMAIL@example.com" ui.color = "auto" # the default # ui.color = never # no color -ui.relative-timestamps = false # the default -# ui.relative-timestamps = true # renders timestamps relatively, e.g. "x hours ago" - ui.editor = "pico" # the default # ui.editor = "vim" @@ -20,6 +17,9 @@ ui.merge-editor = "meld" # default # ui.merge-editor = "vimdiff" # ui.merge-editor = "kdiff3" +# Relative timestamp rendered as "x days/hours/seconds ago" +template-aliases.'format_timestamp(timestamp)' = 'timestamp.ago()' + # The three merge tools above are pre-configured. For detailed information # about how to change the default configuration or how to configure another tool, # see documentation in config.md. An example: