martinvonz / jj

A Git-compatible VCS that is both simple and powerful
https://martinvonz.github.io/jj/
Apache License 2.0
7.24k stars 240 forks source link

FR: branch pointers should update when I `jj commit` #3976

Closed ChrisPenner closed 5 days ago

ChrisPenner commented 6 days ago

Is your feature request related to a problem? Please describe. After many jj commits, I find myself constantly needing to jj branch set ... to get my branch pointers back up to the latest change, I'd love if jj could keep them up to date in common unambiguous situations.

Describe the solution you'd like I think it would solve it for me if:

Describe alternatives you've considered I suppose you could update the branch pointer to the new empty change on jj new and jj commit, but I think it would cause errors trying to push an empty commit too often, seems more clunky.

ilyagr commented 6 days ago

You should take a look at https://github.com/martinvonz/jj/discussions/3549. I'll try to add some docs to that post in a second.

ChrisPenner commented 5 days ago

Oh perfect, I'll try that out, yeah I checked the config docs and didn't see anything for this, so some more docs on it would be great!

Cheers!