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-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMQyY8qhakFYLJY4kEXuWMclyBCIz0uzvMEEhB7o+czr'
  13. [signing.backends.ssh]
  14. program = '/Applications/1Password.app/Contents/MacOS/op-ssh-sign'
  15. allowed-signers = '~/.ssh/allowed_signers'
  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()..@):: | heads(mutable()), 2) | roots(immutable()..)- | 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. s = ['show', '@-']
  29. tug = ['bookmark', 'move', '--from', 'closest_bookmark(@)', '--to', 'closest_pushable(@)']
  30. [revset-aliases]
  31. 'closest_bookmark(to)' = 'heads(::to & bookmarks())'
  32. 'closest_pushable(to)' = 'heads(::to & mutable() & ~description(exact:"") & (~empty() | merges()))'
  33. [templates]
  34. draft_commit_description = '''
  35. concat(
  36. description,
  37. "\nJJ: This commit contains the following changes:\n",
  38. indent("JJ: ", diff.stat(72)),
  39. "JJ: ignore-rest\n",
  40. diff.git(),
  41. )
  42. '''
  43. [template-aliases]
  44. 'format_short_signature(signature)' = 'coalesce(signature.email().local(), email_placeholder)'
  45. log_medium = '''
  46. if(root,
  47. format_root_commit(self),
  48. label(if(current_working_copy, "working_copy"),
  49. concat(
  50. label(if(self.contained_in("remote_bookmarks().."), "unpushed"), format_short_commit_header(self)) ++ "\n",
  51. separate(" ",
  52. if(empty, label("empty", "(empty)")),
  53. if(description,
  54. description.first_line() ++ if(description.lines().len() > 1,
  55. label("rest", "\n\t" ++ description.substr(description.first_line().len() + 2, -1).first_line())
  56. ),
  57. label(if(empty, "empty"), description_placeholder),
  58. ),
  59. ) ++ "\n",
  60. ),
  61. )
  62. )
  63. '''
  64. [colors]
  65. 'bookmarks name' = '#d47ebe'
  66. 'commit author email' = '#f9e2af'
  67. 'commit change_id shortest prefix' = '#cba6f7'
  68. 'commit unpushed change_id shortest prefix' = '#fab387'
  69. 'commit working_copy unpushed change_id shortest prefix' = '#f38ba8'
  70. 'commit working_copy change_id shortest prefix' = '#f38ba8'
  71. timestamp = '#a6adc8'