summaryrefslogtreecommitdiff
path: root/jj_config.toml
blob: 179bb5cb7684308f6393b1a7ec16f65a698e4246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"$schema" = "https://jj-vcs.github.io/jj/latest/config-schema.json"

[ui]
diff-formatter = ["difft", "--color=always", "$left", "$right"]

[revset-aliases]
'closest_bookmark(to)' = 'heads(::to & bookmarks())'

[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(),
          )'''