raylu il y a 5 mois
Parent
commit
26c842d294
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      config/jj/config.toml

+ 5 - 0
config/jj/config.toml

@@ -21,3 +21,8 @@ sign-on-push = true
 l = ['log', '-r', '(trunk()..@):: | ancestors(trunk()..@, 4) | bookmarks()', '-T', 'builtin_log_compact_full_description']
 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()))'