config.toml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. [user]
  2. name = 'raylu'
  3. email = '90059+raylu@users.noreply.github.com'
  4. [ui]
  5. pager = 'delta'
  6. default-command = 'l'
  7. show-cryptographic-signatures = true
  8. diff-formatter = ':git' # https://jj-vcs.github.io/jj/latest/config/#processing-contents-to-be-paged
  9. [signing] # https://jj-vcs.github.io/jj/latest/config/#automatically-signing-commits
  10. behavior = 'drop'
  11. backend = 'ssh'
  12. key = '~/.ssh/id_ed25519.pub'
  13. [signing.backends.ssh]
  14. allowed-signers = '~/.ssh/allowed-signers'
  15. program = 'ssh-keygen.exe'
  16. [git]
  17. sign-on-push = true
  18. [merge-tools.mergiraf]
  19. program = 'mergiraf'
  20. merge-args = ['merge', '$base', '$left', '$right', '-o', '$output']
  21. merge-conflict-exit-codes = [1]
  22. conflict-marker-style = 'git'
  23. [aliases]
  24. d = ['diff']
  25. l = ['log', '-r', 'ancestors((trunk()..@)::, 2) | ancestors(builtin_immutable_heads().., 2) | bookmarks()', '-T', 'log_medium']
  26. ll = ['log', '-r', 'ancestors(present(@) | present(trunk()) | bookmarks() | tracked_remote_bookmarks() | visible_heads(), 2)']
  27. ls = ['log', '-r', '..(@ | present(trunk()))', '-T', 'builtin_log_compact_full_description']
  28. tug = ['bookmark', 'move', '--from', 'closest_bookmark(@)', '--to', 'closest_pushable(@)']
  29. [revset-aliases]
  30. 'closest_bookmark(to)' = 'heads(::to & bookmarks())'
  31. 'closest_pushable(to)' = 'heads(::to & mutable() & ~description(exact:"") & (~empty() | merges()))'
  32. [templates]
  33. draft_commit_description = '''
  34. concat(
  35. description,
  36. "\nJJ: This commit contains the following changes:\n",
  37. indent("JJ: ", diff.stat(72)),
  38. "JJ: ignore-rest\n",
  39. diff.git(),
  40. )
  41. '''
  42. [template-aliases]
  43. 'format_short_signature(signature)' = 'coalesce(signature.email().local(), email_placeholder)'
  44. log_medium = '''
  45. if(root,
  46. format_root_commit(self),
  47. label(if(current_working_copy, "working_copy"),
  48. concat(
  49. label(if(self.contained_in("remote_bookmarks().."), "unpushed"), format_short_commit_header(self)) ++ "\n",
  50. separate(" ",
  51. if(empty, label("empty", "(empty)")),
  52. if(description,
  53. description.first_line() ++ if(description.first_line().len() < description.trim_end().len(),
  54. label("rest", "\n\t" ++ description.substr(description.first_line().len() + 2, -1).first_line())
  55. ),
  56. label(if(empty, "empty"), description_placeholder),
  57. ),
  58. ) ++ "\n",
  59. ),
  60. )
  61. )
  62. '''
  63. [colors]
  64. 'bookmarks name' = '#d47ebe'
  65. 'commit author email' = '#f9e2af'
  66. 'commit change_id shortest prefix' = '#cba6f7'
  67. 'commit unpushed change_id shortest prefix' = '#fab387'
  68. 'commit working_copy unpushed change_id shortest prefix' = '#f38ba8'
  69. 'commit working_copy change_id shortest prefix' = '#f38ba8'
  70. timestamp = '#a6adc8'