News for hackers. Stuff that matters.
Re:Jujutsu (jj), a Git compatible VCS by stouset on Sunday October 20, 2024 @04:52PM (#41898364)
You live with those files showing up as untracked because it was easy and convenient to do so with git.

If git auto-added them from the get go, you would have used a pattern in your personal or project gitignore to skip them, or you would have put them into an ignored tmpdir, or you would keep them on a separate branch if you intend to make them part of the repo. None of these steps would have felt painful or out of place. You see files you don’t intend to include in `jj status` and you’d do whatever is appropriate to exclude them.

I’m with Steve here. I too was skeptical, and it’s turned out to be a complete non-issue.

> and I'd have to something akin to git's filter-branch to clean them out again to avoid that bloat

It’s even more trivial than you might imagine. If you have a commit that added files you don’t want to include you `jj edit` that commit, remove them however is appropriate (rm, mv, add to gitignore, whatever), and… there is no step 3. Later commits are instantaneously and automatically rebased so as to not include those files. Tools like filter-branch are completely unnecessary.

Re:Jujutsu (jj), a Git compatible VCS by eikenberry on Sunday October 20, 2024 @05:39PM (#41898705)
Cool. You've convinced me. A small change in workflow + easy cleanup sounds like it addresses most of my concerns. Though if I were to adopt jj I'd still probably just turn off the feature at first until I saw where I could have used it in practice. I'm going to wait and see for a bit myself. I'm pretty comfortable with git.
Re:Jujutsu (jj), a Git compatible VCS by emacsen on Sunday October 20, 2024 @08:53PM (#41899766)
The way jj tracks changes isn't a feature you can turn off AFAIK. Maybe you can, but if you can, you shouldn't. This is fundamental to the jj internals and workflow.

As someone who also kept a lot of files in their repo that went untracked, it was a small adjustment. Add to my .gitignore, untrack the files, and done.

Re:Jujutsu (jj), a Git compatible VCS by stouset on Sunday October 20, 2024 @09:35PM (#41899949)
You can disable automatically adding untracked files to the repo, but you can't disable it from automatically incorporating changes to tracked files. I believe GP was talking about the former.
Re:Jujutsu (jj), a Git compatible VCS by eikenberry on Monday October 21, 2024 @12:04AM (#41900584)
Yes. It was specifically adding untracked files automatically.