Live data from Hacker News

Jujutsu VCS: Introduction and patterns

kubamartin.com

31–40 of 128 posts

Re: Jujutsu VCS: Introduction and patterns

#31

What workflow do people adopt for tools which still do not have a concept of local-only config files? For example, VSCode only has a launch.json, which should be committed, but I might need to customize it to my environment/current problem without distributing those edits. How can I not constantly fight jj with this?

The usual way this is done is by having a sample file checked into the repo (launch.sample.json?) that developers can copy locally and customize.

Re: Jujutsu VCS: Introduction and patterns

#32

I think I'm at risk of sounding like a broken record here. I've read about jj many times now but i'm still confused as to what problem it actually solves. I get the same feeling as when some dude wants to sell me on using vim as my primary code editor - arguments are there but it doesn't really solve an issue. I'll go over to jj when that's the primary tool for the job, or when I can see something that beats the git…

There is no substitute for trying it out for a few days. It will quickly become apparent why people like it so much.

Re: Jujutsu VCS: Introduction and patterns

#33
Editing changes in place is very handy. This is especially useful for range-diff workflows when you want to see what has changed between two patchsets (eg diff of diffs).

I’ve been slowly working on a patch-bin service that only has access to patchsets and doesn’t have access to the git repo itself. As a result the best we can offer is range-diff. It’s a pretty interesting workflow and makes the collaboration software easier to maintain: https://pr.pico.sh

Re: Jujutsu VCS: Introduction and patterns

#34

What workflow do people adopt for tools which still do not have a concept of local-only config files? For example, VSCode only has a launch.json, which should be committed, but I might need to customize it to my environment/current problem without distributing those edits. How can I not constantly fight jj with this?

I use the squash workflow for this. I do my work on change N+1, which includes all the local changes I don't want to merge. When I'm ready to make a PR, I squash my edits into earlier changes, then `jj git push -c @-`, which will send everything up to change N. Once merged, I rebase change N+1 onto the new master.

Re: Jujutsu VCS: Introduction and patterns

#35
Your example videos are hard to follow. I don't have this much working memory. Can you keep showing the content of the directory, and the contents of the files too? I guess you will need a file explorer and a text editor that updates automatically, but I can't recommend any in particular.

Re: Jujutsu VCS: Introduction and patterns

#36

I think I'm at risk of sounding like a broken record here. I've read about jj many times now but i'm still confused as to what problem it actually solves. I get the same feeling as when some dude wants to sell me on using vim as my primary code editor - arguments are there but it doesn't really solve an issue. I'll go over to jj when that's the primary tool for the job, or when I can see something that beats the git…

I think the main problem it solves is stacking https://www.stacking.dev/

That’s a problem created by GitHub or people unable to think outside of the GitHub model. It would make more sense to solve that problem through a review tool.

For what it’s worth from what I’ve read about JJ: it’s a better VCS frontend overall.

Re: Jujutsu VCS: Introduction and patterns

#38
The fact that jj doesn’t tell you what files have changed until you start a new commit is holding up my plans to use it. It’s frustrating for me and I imagine it would create tech support questions if I made others use it if it’s to replace git it needs some further ergonomics refinement.

Re: Jujutsu VCS: Introduction and patterns

#39

Earlier quoted context omitted.

I think the main problem it solves is stacking https://www.stacking.dev/

That’s a problem created by GitHub or people unable to think outside of the GitHub model. It would make more sense to solve that problem through a review tool. For what it’s worth from what I’ve read about JJ: it’s a better VCS frontend overall.

I don't believe so, I believe it's a fundamental aspect of the git model.

Re: Jujutsu VCS: Introduction and patterns

#40
post #26

I have used jj for about one month on a project with a colocated git repo. So far, I enjoy it a lot. Previously I would have a bunch of 'wip', 'fix typo' commits, but my commit history got much cleaner with jj. It's very easy to jump to old changes and apply fixes right in the place they belong. All changes + tests are now committed as one unit. I would never bother to do it in git, but because it's so easy now, I do…

Although it is currently undocumented, since v0.21.0 you can make `--edit` the default by adding the following to your configuration: [ui.movement] edit = true Ref: https://github.com/jj-vcs/jj/pull/4283

The config file needs a lot of love. As does the help.

If you clone the repo there’s a bunch of documentation and example files, but if you install jj, those do not exist.

Post reply on HN