logoalt Hacker News

KingMob • today at 8:08 AM • 2 replies • view on HN

Think of it this way: you still have a staging area in jj, but now it's a commit instead of something unique and separate. There's zero obstacle to picking and discarding hunks with jj.


Replies

ozim • today at 9:00 AM

I do that for stash, I do not use stash for me it is commit or discard.

IshKebab • today at 10:19 AM

Here's my current workflow:

1. I write some code.

2. I realise it makes sense to commit as two commits.

3. I stage changes for the first commit & commit it.

4. I stage the remaining changes and commit those.

How would that work in JJ? I guess you do things in a different order somehow?

➕ show 3 replies