zlacker

[parent] [thread] 3 comments
1. pimeys+(OP)[view] [source] 2025-12-05 12:18:05
There's a very common alias `jj tug` for this case:

  tug = ["bookmark", "move", "--from", "heads(::@- & bookmarks())", "--to", "@-"]
It moves the nearest bookmark to the commit before the current one (which should be your working commit).
replies(2): >>stavro+q4 >>mhitza+vz
2. stavro+q4[view] [source] 2025-12-05 12:47:48
>>pimeys+(OP)
Thanks, I replaced my Frankenstein's monster of a parsing pipeline with this, very useful!
3. mhitza+vz[view] [source] 2025-12-05 15:23:52
>>pimeys+(OP)
This looks like any other git arcane incantation. If this is a common pattern and jj aims to make things easier, should probably be part of the core commands, no?
replies(1): >>stevek+D52
◧◩
4. stevek+D52[view] [source] [discussion] 2025-12-05 22:37:51
>>mhitza+vz
It's something that makes a specific workflow easier, a lot of folks that use jj don't necessarily use that workflow.

That doesn't mean it couldn't be a core command someday, but given that the alias works well for people, there's not a ton of reason to make a whole new command. You configure the alias and you're off to the races.

[go to top]