About
jj is a Git-compatible version control system that is both simple and powerful.
See the installation instructions to get started.
Release highlights
- jj bookmark set and jj bookmark move now always move bookmarks backwards
or sideways. The --allow-backwards flag for jj bookmark set and jj bookmark move is now a no-op.
- The graph lines in jj log, jj evolog, jj op log, jj op show, and
jj op diff can now be colored. Each line uses one of the labels
graph line0 to graph line11, and keeps its label when it moves to another
column. The labels have no color by default. Set them in the [colors] table
to turn the colors on. Node symbols also receive the graph and line labels.
Breaking changes
- jj bookmark set and jj bookmark move now move bookmarks backwards or
sideways with a warning instead of failing. --allow-backwards is deprecated.
#8808
- Deleted jj debug snapshot. It was deprecated in 0.39.0. Use
jj util snapshot instead.
- jj gerrit upload now uploads the ancestors of the given revisions that are
not on the remote instead of their mutable ancestors. It fails if any of them
are immutable, since they need to be rewritten to add a Change-Id trailer.
Revisions that are already on the remote are no longer rejected as immutable.
- jj git push now checks commits in immutable() for empty descriptions,
missing author/committer, conflicts, and being private
(git.private-commits). Commits that are already on the remote being pushed
to are still not checked.
- jj workspace add now creates the new working-copy commit on top of the
closest immutable ancestor (heads(::@ & immutable())) instead of on the
parents of the current working-copy commit. Pass -r @- or set
revsets.workspace-add = "@-" for the old behavior.
- jj workspace add now fails when the current workspace doesn't have a working
copy. It used to fall back to creating the new workspace's working copy on top
of the root commit. To change this, set the config revsets.workspace-add to
a value that tolerates a missing @, such as coalesce(heads(::present(@) & immutable()), trunk()).
Deprecations
- jj bookmark set and jj bookmark move now always move bookmarks backwards
or sideways. The --allow-backwards flag for jj bookmark set and jj bookmark move is now a no-op.
New features
- Added AnnotationLine.hunk_index() template method for jj file annotate.
- jj gerrit upload now uses revsets.git-sign-on-push to sign final upload
commits. Each upload attempt signs the selected commits again.
- jj git clone now uses the object format (SHA-1 or SHA-256) of the remote
repository, unless --object-hash is given. The format of an empty remote
can't be detected yet, so git.object-hash is still used in that case.
#3813
- jj git push can now be configured to ask for confirmation before pushing
changes to a remote using git.confirm-before-push.
- When graph lines cross, the vertical line now stays visible through a gap in
the horizontal line.
- The graph lines in jj log, jj evolog, jj op log, jj op show, and
jj op diff can now be colored. Each line uses one of the labels
graph line0 to graph line11, and keeps its label when it moves to another
column. The labels have no color by default. Set them in the [colors] table
to turn the colors on. Node symbols also receive the graph and line labels.
- jj interdiff's --from and --to options now accept revsets that resolve
to multiple revisions; each side is treated as if its revisions were squashed
into a single revision first.
#8281
- jj run supports --keep-changes flag to keep changes made by a command even
if it fails. This can be wanted behavior when using tools like Prek or
pre-commit.
- Using the json template function with ui.log-word-wrap set to true now
emits a warning that the output may be broken due to potential wrapping in the
middle of JSON output. Users should set the config option to false to avoid
receiving invalid JSON objects on small terminals.
- New with(values..., |names...| body) templating function which allows you to
assign expressions to name bindings in a lambda. Expressions are re-evaluated
for each use, so this is effectively the same as defining temporary template
aliases for each expression (currently no performance benefit).
- In templates, if(condition, then, else) and try() now preserve matching
branch types, enabling if(x, 1, 2) + 3.
- Added --when.commit-backends condition for conditional configs based on a
repository's commit backend name (as returned by jj util backend name).
- New revsets.workspace-add config to set the default parents of the new
working-copy commit created by jj workspace add.
Fixed bugs
- In colocated workspaces, --ignore-working-copy and --at-op now prevent
changes from being exported to Git HEAD and refs.
- jj converge no longer prompts for an author when divergent commits have the
same author name and email but different timestamps.
#10261
- A conflict where a path is a directory in some terms and a file in others is
now treated as a file conflict when the directory terms cancel out, so it is
materialized with conflict markers.
- A conflict where a path is a directory in some terms and a file in others is
now treated as a directory when the non-directory terms cancel out. Such a
path is also no longer listed as a directory/file conflict, and its conflicted
files are listed instead.
- jj git clone now strips trailing slashes before removing the .git suffix
when deriving the default destination directory, so URLs like
https://github.com/user/repo.git/ clone into repo instead of repo.git.
- Initializing a workspace from, or importing HEAD in, a Git repository that
uses an unsupported reference storage backend such as reftable now fails
with an error instead of leaving an incomplete .jj directory or treating
HEAD as unborn.
- Fixed jj git push failure when pushing to multiple remotes with empty
updates. #10647
Contributors
Thanks to the people who made this release happen!
- Aaron Bies (@slerpyyy)
- Adrian Ratiu (@10ne1)
- Alexey Sokolov (@alexey-arista)
- Anton Älgmyr (@algmyr)
- Axel Rasmussen (@CmdrMoozy)
- Bryan O'Sullivan (@bos)
- Dhanush Shetty (@dhanush0x96c)
- Jakub Stasiak (@jstasiak)
- Jelle Besseling (@pingiun)
- Joseph Lou (@josephlou5)
- Josh McKinney (@joshka)
- Josh Steadmon (@steadmon)
- Kyle Lippincott (@spectral54)
- Martin von Zweigbergk (@martinvonz)
- Matt Van Horn (@mvanhorn)
- max (@pr2502)
- Mukul Agarwal (@agarmu)
- Nathan Herring (@Capstan)
- oscilloscode (@oscilloscode)
- Pavan Kumar Sunkara (@pksunkara)
- Philip Metzger (@PhilipMetzger)
- rabBIThole (@TholeRab)
- Rebecca Turner (@9999years)
- Rock Boynton (@rockboynton)
- Sergej Salnikov (@SergejSalnikov)
- Shardul Natu (@kiranani)
- Stephen Jennings (@jennings)
- temportalflux (@temportalflux)
- Théo Daron (@tdaron)
- tinger (@tingerrr)
- Victor Miquel (@vmiquel-42)
- Yuya Nishihara (@yuja)