News for hackers. Stuff that matters.
Re:Jujutsu: A Git-compatible DVCS that is both simple and po... by ocharles on Tuesday August 01, 2023 @12:46PM (#36958562)
The analogous command here is `jj split -i`, which interactively splits the current commit (which is your working copy).
Re:Jujutsu: A Git-compatible DVCS that is both simple and po... by Certhas on Tuesday August 01, 2023 @04:45PM (#36962574)
Thank you, I have yet to see a workflow mentioned here that is not just as easy in jj (just conceptually different).

Also learning about progress git workflows though, so that's cool.

Re:Jujutsu: A Git-compatible DVCS that is both simple and po... by sicariusnoctis on Wednesday August 02, 2023 @06:00AM (#36968903)
`jj split -i` gives:

> error: unexpected argument '-i' found

Actually, maybe I'm just a complete git, but I couldn't figure out how to `git reset HEAD~` my accidental commits, `git rebase -i HEAD~6`, format `jj log` more like `git log --color --oneline --graph --full-history` (which shows one-line-per-commit), `git checkout -p` (and obviously, `git add -p`), `git show HEAD~`, refer to N-th parents, e.g. `master~5`, and a bunch of other things...

It also feels a bit weird that new files are automatically committed without being manually approved, but I suppose this might theoretically help with some of git's annoyances.