Live data from Hacker News

Steve's Jujutsu Tutorial

steveklabnik.github.io

21–30 of 120 posts

Re: Steve's Jujutsu Tutorial

#21
Came here for a martial arts tutorial, which I thought was a bit weird to see front page on HN, and now I see an alternative to git.

I don't particularly like git and for personal projects use fossil instead.

Without going through the whole tutorial, and doing a lot more reading, why should I consider using this over fossil?

Re: Steve's Jujutsu Tutorial

#23

Came here for a martial arts tutorial, which I thought was a bit weird to see front page on HN, and now I see an alternative to git. I don't particularly like git and for personal projects use fossil instead. Without going through the whole tutorial, and doing a lot more reading, why should I consider using this over fossil?

Same. I miss the old times when people tried naming their projects sensibly. I mean, we're constantly telling ourselves how variable and function names should speak for themselves, but then we name our projects using random, completely non-descript names. It's a annoying.

Re: Steve's Jujutsu Tutorial

#24
I really like Jujutsu but I went back to Git because there wasn't a Neovim plugin with features comparable to Neogit or Fugitive.

I even started writing one but that was a pretty big project and I lost the motivation for it.

Re: Steve's Jujutsu Tutorial

#26

I get that naming is one of the hardest problems in computer science, but naming software after a martial art is just lazy and will lead to problems with things like searches

Like naming your language after a common two-letter verb. At least we can search for 'golang'.

Re: Steve's Jujutsu Tutorial

#28
post #8

Jujutsu is terrible in my opinion. people hate the index, but I think they just dont get it. to me a commit is something that is ready to push, and the index is for stuff that is done but not ready to push. just because I wrote one line that I am happy with, doesn't mean I am ready to commit and push that. I prefer to add stuff thats done, then when enough is done I can commit and push. if you remove the index it mak…

I like jj because I like git's index so much. JJ lets me do what git's index does, but in a much more powerful way. What you do is, you treat @ like the index, and you work on @-. This is the "squash workflow" https://steveklabnik.github.io/jujutsu-tutorial/real-world-w...

OK but again thats awful, because @ IS A COMMIT, so you are only a "git push" away from accidentally pushing arbitrary garbage instead of proper changes

Re: Steve's Jujutsu Tutorial

#29
post #28

Earlier quoted context omitted.

I like jj because I like git's index so much. JJ lets me do what git's index does, but in a much more powerful way. What you do is, you treat @ like the index, and you work on @-. This is the "squash workflow" https://steveklabnik.github.io/jujutsu-tutorial/real-world-w...

OK but again thats awful, because @ IS A COMMIT, so you are only a "git push" away from accidentally pushing arbitrary garbage instead of proper changes

Actually, `jj git push` will only push named branches, which are now called "bookmarks".

You simply don't attach a bookmark to @, and `jj git push` will NEVER push it (to what branch would it push?)

The branch you're working on is instead on @-. So when you squash, it updates the branch.

Re: Steve's Jujutsu Tutorial

#30
Been using jj at work for months now. In colocated mode, JetBrains IDEs even retain some if their VCS integration.

The ability to easily work on top of an octopus merge and then push changes "down" into the contributing branches has been a live saver when my team had to do a big refactoring in a mono repo and split the changes into small PRs for individual teams (code owners).

The auto committing behavior is a bit weird at first, but now I don't want to go back to git. It feels a bit like the step from SVN to git back in the the day. ("this feels weird" -> "how did people ever tolerate the old way?")

Post reply on HN