| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- [user]
- name = 'raylu'
- email = '90059+raylu@users.noreply.github.com'
- [ui]
- pager = 'delta'
- default-command = 'l'
- show-cryptographic-signatures = true
- diff-formatter = ':git' # https://jj-vcs.github.io/jj/latest/config/#processing-contents-to-be-paged
- [signing] # https://jj-vcs.github.io/jj/latest/config/#automatically-signing-commits
- behavior = 'drop'
- backend = 'ssh'
- backends.ssh.allowed-signers = '~/.ssh/allowed-signers'
- key = '~/.ssh/id_ed25519.pub'
- [git]
- sign-on-push = true
- [aliases]
- d = ['diff']
- l = ['log', '-r', '(trunk()..@):: | ancestors(trunk()..@, 4) | bookmarks()', '-T', 'log_medium']
- ll = ['log', '-r', 'ancestors(present(@) | present(trunk()) | bookmarks() | tracked_remote_bookmarks() | visible_heads(), 2)']
- ls = ['log', '-r', '..(@ | present(trunk()))', '-T', 'builtin_log_compact_full_description']
- tug = ['bookmark', 'move', '--from', 'closest_bookmark(@)', '--to', 'closest_pushable(@)']
- [revset-aliases]
- 'closest_bookmark(to)' = 'heads(::to & bookmarks())'
- 'closest_pushable(to)' = 'heads(::to & mutable() & ~description(exact:"") & (~empty() | merges()))'
- [template-aliases]
- 'format_short_signature(signature)' = 'coalesce(signature.email().local(), email_placeholder)'
- log_medium = '''
- if(root,
- format_root_commit(self),
- label(if(current_working_copy, "working_copy"),
- concat(
- format_short_commit_header(self) ++ "\n",
- separate(" ",
- if(empty, label("empty", "(empty)")),
- if(description,
- description.first_line() ++ if(description.first_line().len() < description.trim_end().len(),
- label("rest", "\n\t" ++ description.substr(description.first_line().len() + 2, -1).first_line())
- ),
- label(if(empty, "empty"), description_placeholder),
- ),
- ) ++ "\n",
- ),
- )
- )
- '''
|