summaryrefslogtreecommitdiff
path: root/jj_config.toml
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2025-12-22 12:03:29 +0000
committertslil <tslil@posteo.de>2025-12-22 12:03:42 +0000
commitc1cfc81aca065ee3342cb61dcd1d1072b1174c1f (patch)
treed3c0dbeb05a73c2907a9b0c8c107ecf1c6019b81 /jj_config.toml
parent3962882aa4f63c382153513ac22c2808785e059d (diff)
[jj] add two aliases, draft_commit_description
Diffstat (limited to 'jj_config.toml')
-rw-r--r--jj_config.toml12
1 files changed, 12 insertions, 0 deletions
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(),
+ )'''