From c1cfc81aca065ee3342cb61dcd1d1072b1174c1f Mon Sep 17 00:00:00 2001 From: tslil Date: Mon, 22 Dec 2025 12:03:29 +0000 Subject: [jj] add two aliases, draft_commit_description --- jj_config.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jj_config.toml b/jj_config.toml index 2a1e809..1133129 100644 --- a/jj_config.toml +++ b/jj_config.toml @@ -5,6 +5,18 @@ [aliases] tug = ["bookmark", "move", "--from", "closest_bookmark(@-)", "--to", "@-"] +ml = ["log", "-r", "visible_heads() & mine()"] +lf = ["log", "-r", "visible_heads()"] [templates] git_push_bookmark = '"tslil/push-" ++ change_id.short()' +draft_commit_description = ''' + concat( + coalesce(description, default_commit_description, "\n"), + surround( + "\nJJ: This commit contains the following changes:\n", "", + indent("JJ: ", diff.stat(72)), + ), + "\nJJ: ignore-rest\n", + diff.git(), + )''' -- cgit v1.2.3