From a2613c565ead6533a9b4a6927f1e17abdb735ec2 Mon Sep 17 00:00:00 2001 From: Olexandr Smirnov Date: Mon, 11 Aug 2025 00:09:30 +0300 Subject: [PATCH] jj: short log, d for diff, push, and show timestamp relatively to now --- config/jj/config.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config/jj/config.toml b/config/jj/config.toml index d4cecb0..3eba8d4 100644 --- a/config/jj/config.toml +++ b/config/jj/config.toml @@ -16,9 +16,11 @@ sign-on-push = true auto-local-bookmark = true [aliases] -l = ["log", "-n10"] +d = ["diff"] +l = ["log", "-r", "ancestors(reachable(@, mutable()), 3)"] +llog = ["log", "-T", "builtin_log_detailed"] n = ["new"] -bc = ["bookmark", "create"] +push = ["git", "push"] tug = ["bookmark", "move", "--from", "heads(::@- & bookmarks())", "--to", "@-"] [templates] @@ -29,3 +31,6 @@ concat( diff.git(), ) ''' + +[template-aliases] +"format_timestamp(timestamp)" = "timestamp.ago()"