GitHub Stacks in Jujutsu

36 points by altano


alper

this is an unambitious implementation of stacked PRs. GitHub’s stacked PRs build entirely on the existing, flawed model of GitHub PRs without changing any of the foundations

The feature people've been waiting years for comes out and is entirely lacklustre.

dominicm

Wonderful article from a real power user with lots to share. This is a real streamlined flow.

I think it really shows the impractical edges on gh stack as well. Even trying to use this on the blessed path I found it pretty awkward to use. I have all my git tools and suddenly I need to stop using them and to back to calling out to a special version of every command.

The limitation on reordering a stack was a surprise to me. If you do that, I presume you lose all of your reviews after that point too?

koreth

I've been using GitHub Stacked PRs with jj for the last few weeks and this article would have been very helpful when I was first figuring things out!

One thing I do differently than the workflow here is use jj-gh to create the PRs, rather than letting gh stack link do the job. That tool gives you more control over what the PR title and description look like. I found that PRs created using gh stack link would often end up with a title that was just my bookmark name, and I'd have to go manually copy-paste my commit messages into the PR. I still run gh stack link to tell GitHub about the stack, but it detects that there are existing PRs and links those PRs together rather than creating new ones.

restrictedchoice

Honest question -- why do all of this? The fundamental building blocks of jj directly, easily support stacks without any customization. You can move to any point in a stack of commits, add more work at any point, label each point in the stack with a bookmark, all with built-in commands.

I too went through a phase of "revset alias everything", but jj has such powerful primitives that I find this kind of customization to be counter-productive.