Replies: 3 comments 6 replies
-
Would not having the local bookmark affect the |
Beta Was this translation helpful? Give feedback.
-
I think this is the |
Beta Was this translation helpful? Give feedback.
-
Yes, the project is aware of that and is trying to solve it.
There's also the idea of using Topics for Git branch interop, which would match the behavior of having a sticky |
Beta Was this translation helpful? Give feedback.
-
(Disclaimer: relatively new to jj.)
Using jj to work on a project hosted on GitHub I find that bookmarks are clunky, and I think there is a way to simplify them that would make things much less clunky without needing to have any new features related to automatically updating bookmarks.
Currently to push a change to my
main
branch, I have to first update my localmain
bookmark:jj b m -r @- main
, and thenjj git push
. Note that, beyond needing a kind of long command, in particular I have to spell out which branch I mean to push.Now imagine if jj just didn't create tracking local bookmarks, and instead the
git push
command took the name of the remote branch to push to, something likejj git push -r @- main
wheremain
here is the name of the remote branch to update. (It's the same behavior asgit push origin X:main
which is something I often do in Git anyway.)This would mean locally jj would still have the
main@origin
remote tracking bookmark so I could follow what's going on upstream. When it's time to push I would still specify which branch to push, just as we currently do. All together it would mean I just don't have this extra localmain
bookmark lingering around that I need to manually twiddle before pushing.(You could even make this more ergonomic by saying that
jj git push
as a special case for Git interop doesn't push empty commits, which would meanjj git push main
would effectively push your current branch to origin's main.)Beta Was this translation helpful? Give feedback.
All reactions