From 0d3beca4fc5022279fcec149a8f7e8f27485981f Mon Sep 17 00:00:00 2001 From: Olexandr Smirnov Date: Sun, 10 Aug 2025 01:11:08 +0300 Subject: [PATCH] jj: show the diff in commit editor; add tug alias(which i feel i won't use much) --- config/jj/config.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/jj/config.toml b/config/jj/config.toml index 94e8f1e..d4cecb0 100644 --- a/config/jj/config.toml +++ b/config/jj/config.toml @@ -19,3 +19,13 @@ auto-local-bookmark = true l = ["log", "-n10"] n = ["new"] bc = ["bookmark", "create"] +tug = ["bookmark", "move", "--from", "heads(::@- & bookmarks())", "--to", "@-"] + +[templates] +draft_commit_description = ''' +concat( + coalesce(description, default_commit_description, "\n"), + "\nJJ: ignore-rest\n", + diff.git(), +) +'''