Replies: 3 comments 7 replies
-
I know that @sheremetyev is thinking about this a lot with (proprietary, but free-as-in-beer) https://visualjj.com. See also #5388. |
Beta Was this translation helpful? Give feedback.
-
What are the |
Beta Was this translation helpful? Give feedback.
-
The part of this workflow that jj can't do today is fetch and push to the special If you colocate your repository, you can do the fetch and push with git or There's no shame in using git commands, that's what makes colocation such a great feature. |
Beta Was this translation helpful? Give feedback.
-
I've been using jj for my projects for a few months and very much enjoying it. Thanks for making such a great improvement on the git workflows!
However, I'm experiencing some friction when reviewing and/or editing GitHub pull requests into my projects. Editing is very important, I will frequently rebase and do some final edits before merging the PR. GitHub allows maintainers to push to the PR's branch by default, which is what I use here.
With regular git, my workflow is:
gh pr checkout 1234
git push --force
which will push straight into the PR branch on the author's repo, thanks togh
setting up apushRemote
config for the branch.With jj, it's quite a bit more involved:
git remote add authorname $(wl-paste)
git fetch authorname
jj b track branchname@authorname
(typing this out manually, Tab-complete doesn't work here): required to make the changes mutablebranchname
bookmark.jj git push --remote authorname -b branchname
It's also a bit annoying when the author updates the PR and I pull it for a second round of review and edits:
git fetch authorname
(jj git fetch --remote authorname
works the same way here as far as I can tell)Also note how, compared to git and gh:
main
branch for the PR, I have to additionally restore tracking of mymain@origin
instead ofmain@authorname
.My question is: can I reduce this friction somehow? Perhaps there's feature request I can follow that will improve this kind of workflow? I see #4555 but it appears to be more about creating new PRs and not reviewing/editing others' PRs.
Beta Was this translation helpful? Give feedback.
All reactions