config.toml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. backends.ssh.allowed-signers = '~/.ssh/allowed-signers'
  13. key = '~/.ssh/id_ed25519.pub'
  14. [git]
  15. sign-on-push = true
  16. [aliases]
  17. d = ['diff']
  18. l = ['log', '-r', '(trunk()..@):: | ancestors(trunk()..@, 4) | bookmarks()', '-T', 'log_medium']
  19. ll = ['log', '-r', 'ancestors(present(@) | present(trunk()) | bookmarks() | tracked_remote_bookmarks() | visible_heads(), 2)']
  20. ls = ['log', '-r', '..(@ | present(trunk()))', '-T', 'builtin_log_compact_full_description']
  21. tug = ['bookmark', 'move', '--from', 'closest_bookmark(@)', '--to', 'closest_pushable(@)']
  22. [revset-aliases]
  23. 'closest_bookmark(to)' = 'heads(::to & bookmarks())'
  24. 'closest_pushable(to)' = 'heads(::to & mutable() & ~description(exact:"") & (~empty() | merges()))'
  25. [templates]
  26. draft_commit_description = '''
  27. concat(
  28. description,
  29. "\nJJ: This commit contains the following changes:\n",
  30. indent("JJ: ", diff.stat(72)),
  31. "JJ: ignore-rest\n",
  32. diff.git(),
  33. )
  34. '''
  35. [template-aliases]
  36. 'format_short_signature(signature)' = 'coalesce(signature.email().local(), email_placeholder)'
  37. log_medium = '''
  38. if(root,
  39. format_root_commit(self),
  40. label(if(current_working_copy, "working_copy"),
  41. concat(
  42. format_short_commit_header(self) ++ "\n",
  43. separate(" ",
  44. if(empty, label("empty", "(empty)")),
  45. if(description,
  46. description.first_line() ++ if(description.first_line().len() < description.trim_end().len(),
  47. label("rest", "\n\t" ++ description.substr(description.first_line().len() + 2, -1).first_line())
  48. ),
  49. label(if(empty, "empty"), description_placeholder),
  50. ),
  51. ) ++ "\n",
  52. ),
  53. )
  54. )
  55. '''