jujutsu (jj) 0.46.0
jujutsu (jj) version 0.46.0 has been released, bringing several enhancements and bug fixes to the simple yet powerful Git-compatible version control system. The minimum Git command version requirement has been raised to 2.42.0, up from the previous 2.41.0. jj workspace add now uses git worktree add --orphan, a feature introduced in Git 2.42.0. jj bisect run has been improved to perform consistency checks before proceeding with the bisect process, ensuring accurate identification of good and bad revisions. The --trust-endpoints flag has been added to disable these checks if desired.
One notable addition is the ability to open a single editor session for editing descriptions of split commits with jj split. Both jj undo and jj redo now refuse to undo or redo operations performed in other workspaces, unless the --allow-cross-workspace flag is used. The workspace list/root command now shows all recorded paths, including unreachable ones, with warnings displayed in the jj workspace root output.
Several template functions have been updated to return Option T instead of throwing an error on out-of-bounds access. These include List.get(), .first(), .last(), and json(). The jj workspace add command now supports --colocate/--no-colocate flags to control whether a Git worktree is created alongside the workspace, with the default behavior determined by the git.colocate config setting. The jj workspace forget command now removes the corresponding Git worktree when one exists.
Git colocation commands (status/enable/disable) now work on child workspaces, and jj workspace remove removes a workspace and its directory from disk, snapshotting the working-copy state into a commit before removal. New commands jj file edit and jj file delete have been added for editing files in any revision without changing the working copy.
The git push command now supports pushing to multiple remotes at once, which can be configured via git.push set or the --remote flag. The TreeEntry.normal_value() template method and TreeValue type have been added for accessing resolved tree values.
Diff hunk headers now include nearby source symbols for many programming and markup languages. The fix.tools.name.line-range-args option has been introduced for more flexible passing of arguments to the fix tool. The ui.editor command now supports $path and $line substitution variables, and the fill template function has gained an additional named parameter, break_words, to control word wrapping.
Finally, jj no longer hangs on Windows when a subprocess needs user input, such as during SSH key passphrase prompts or unknown host key confirmations.
Rewritten by urgent.news; may contain errors — check the original.
Source: github.com