dotfiles
1"$schema" = "https://jj-vcs.github.io/jj/latest/config-schema.json"
2
3[aliases]
4su = ["squash"]
5tug = ["bookmark", "move", "--from", "heads(::@- & bookmarks())", "--to", "@-"]
6
7[ui]
8default-command = ["log", "--no-pager"]
9should-sign-off = true
10diff-formatter = ["difft", "--color=always", "--syntax-highlight=off", "$left", "$right"]
11# diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
12# merge-editor = "vimdiff"
13# conflict-marker-style = "git"
14
15[user]
16name = "Seongmin Lee"
17email = "boltlessengineer@proton.me"
18
19[signing]
20behavior = "own"
21backend = "ssh"
22key = "~/.ssh/git-sign-key.pub"
23
24[git]
25write-change-id-header = true
26
27[templates]
28draft_commit_description = '''
29concat(
30 coalesce(description, default_commit_description, "\n"),
31 if(
32 config("ui.should-sign-off").as_boolean() && !description.contains("Signed-off-by: " ++ author.name()),
33 "\nSigned-off-by: " ++ author.name() ++ " <" ++ author.email() ++ ">",
34 ),
35 surround(
36 "\nJJ: This commit contains the following changes:\n", "",
37 indent("JJ: ", diff.summary()),
38 ),
39 "\nJJ: ignore-rest\n",
40 diff.git(),
41)
42'''