1
0

config.toml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. [template-aliases]
  26. 'format_short_signature(signature)' = 'coalesce(signature.email().local(), email_placeholder)'
  27. log_medium = '''
  28. if(root,
  29. format_root_commit(self),
  30. label(if(current_working_copy, "working_copy"),
  31. concat(
  32. format_short_commit_header(self) ++ "\n",
  33. separate(" ",
  34. if(empty, label("empty", "(empty)")),
  35. if(description,
  36. description.first_line() ++ if(description.first_line().len() < description.trim_end().len(),
  37. label("rest", "\n\t" ++ description.substr(description.first_line().len() + 2, -1).first_line())
  38. ),
  39. label(if(empty, "empty"), description_placeholder),
  40. ),
  41. ) ++ "\n",
  42. ),
  43. )
  44. )
  45. '''