Hacker News new | ask | show | jobs
by BeetleB 13 days ago
> i really don't understand jj. what is the point of deleting the useful stage

You have a much more flexible stage in jj than in git. It's not gone anywhere. They just promoted it to first class and don't call it a stage.

> you have to either write a .gitignore counterpart for jj or manually remove them before committing.

I'll admit it is a pain. The one nice outcome, though, is that you now have everything in .gitignore and don't get "?" in your status.

> just commit and type your message when the context is fresh in your head.

The nice thing about jj is you don't need to worry about the "fresh in your head" part. You can write the commit message before you even begin, and modify it as you go along. You can commit things with no message (which I sort of use as staging), and much later, after several commits, go back and put in the message.

1 comments

so jj devs reinvented the stage with extra steps and realize the foresight that linus had quarter century ago.
Fewer steps on average. When you don't need to be selective you don't need to do "git add", for example. Most of my commits when I used git were that way. Forcing me to do a git add each time added friction.

jj gives you the best of both worlds. If you want the friction, you can have it - with no more commands than with git. If you don't want it, fewer commands. And if you want a fancier stage you can have that too.

It's fewer steps, because it is not an additional concept, just the same concept as the others. Better factored.