1
0

config.toml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. git_push_bookmark = '"raylu/push-" ++ change_id.short()'
  36. [template-aliases]
  37. 'format_short_signature(signature)' = 'coalesce(signature.email().local(), email_placeholder)'
  38. log_medium = '''
  39. if(root,
  40. format_root_commit(self),
  41. label(if(current_working_copy, "working_copy"),
  42. concat(
  43. format_short_commit_header(self) ++ "\n",
  44. separate(" ",
  45. if(empty, label("empty", "(empty)")),
  46. if(description,
  47. description.first_line() ++ if(description.first_line().len() < description.trim_end().len(),
  48. label("rest", "\n\t" ++ description.substr(description.first_line().len() + 2, -1).first_line())
  49. ),
  50. label(if(empty, "empty"), description_placeholder),
  51. ),
  52. ) ++ "\n",
  53. ),
  54. )
  55. )
  56. '''