For what it's worth, I've been doing basically this with magit for years now, sometimes with the two-commit setup but usually just using the index plus top commit instead. It's not as slick, though, so this is on my list of things to try out when I give jj a spin eventually. `c F` in the magit menu squashes staged changes directly into a commit in the log, and `c e` amends (which is to say squashing into the tip). So…
Reviewing Large Changes with Jujutsu
11–17 of 17 posts
Re: Reviewing Large Changes with Jujutsu
#12For what it's worth, I've been doing basically this with magit for years now, sometimes with the two-commit setup but usually just using the index plus top commit instead. It's not as slick, though, so this is on my list of things to try out when I give jj a spin eventually. `c F` in the magit menu squashes staged changes directly into a commit in the log, and `c e` amends (which is to say squashing into the tip). So…
Please. Someone create a decent jujitsu porcelain like magit before I create a shitty one myself. I would rather not subject the world to that.
Re: Reviewing Large Changes with Jujutsu
#13I use Jujutsu in mostly the same way at work. I have a `jj review ` alias that checks out a copy, and then I do the review with three copies open: the IDE (for quick navigation and LSP integration), the diff (i.e `jj diff` with a nice pager), and prr [1] so I can leave comments directly from my editor. [1] https://github.com/danobi/prr
Re: Reviewing Large Changes with Jujutsu
#14For what it's worth, I've been doing basically this with magit for years now, sometimes with the two-commit setup but usually just using the index plus top commit instead. It's not as slick, though, so this is on my list of things to try out when I give jj a spin eventually. `c F` in the magit menu squashes staged changes directly into a commit in the log, and `c e` amends (which is to say squashing into the tip). So…
Please. Someone create a decent jujitsu porcelain like magit before I create a shitty one myself. I would rather not subject the world to that.
Re: Reviewing Large Changes with Jujutsu
#15Earlier quoted context omitted.
Please. Someone create a decent jujitsu porcelain like magit before I create a shitty one myself. I would rather not subject the world to that.
I have been using https://github.com/idursun/jjui a lot and it has been great. Not sure how it compares to magit though.
Re: Reviewing Large Changes with Jujutsu
#16I haven't tested it, but this should be slightly simpler, and work better for subsequent review iterations (reviewing what changed once PR is updated): jj new main -m review jj new -m pr jj git fetch jj restore --from=big-change@origin . Then keep squashing from `pr` to `review` as described in the article. When the PR gets a new version, rerun the last 2 commands.
Re: Reviewing Large Changes with Jujutsu
#17This sounds great, I'll have to try this. Though I would expect to do it slightly differently: duplicate the change, do a simple `jj new -m review` on top of it, the `jj squash -i --from @- --into @` to pull in each reviewed chunk. As in, exactly the same thing but the working copy would be the review change instead of the gradually dwindling original change. I guess I can see the appeal of working until there's noth…