Repository navigation
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 setandjj bookmark movenow always move bookmarks backwards
or sideways. The--allow-backwardsflag forjj bookmark setandjj bookmark moveis now a no-op. -
The graph lines in
jj log,jj evolog,jj op log,jj op show, and
jj op diffcan now be colored. Each line uses one of the labels
graph line0tograph 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 thegraphand line labels.
Breaking changes
-
jj bookmark setandjj bookmark movenow move bookmarks backwards or
sideways with a warning instead of failing.--allow-backwardsis deprecated.
#8808 -
Deleted
jj debug snapshot. It was deprecated in 0.39.0. Use
jj util snapshotinstead. -
jj gerrit uploadnow 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 aChange-Idtrailer.
Revisions that are already on the remote are no longer rejected as immutable. -
jj git pushnow checks commits inimmutable()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 addnow 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 addnow 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 configrevsets.workspace-addto
a value that tolerates a missing@, such ascoalesce(heads(::present(@) & immutable()), trunk()).
Deprecations
jj bookmark setandjj bookmark movenow always move bookmarks backwards
or sideways. The--allow-backwardsflag forjj bookmark setandjj bookmark moveis now a no-op.
New features
-
Added
AnnotationLine.hunk_index()template method forjj file annotate. -
jj gerrit uploadnow usesrevsets.git-sign-on-pushto sign final upload
commits. Each upload attempt signs the selected commits again. -
jj git clonenow uses the object format (SHA-1 or SHA-256) of the remote
repository, unless--object-hashis given. The format of an empty remote
can't be detected yet, sogit.object-hashis still used in that case.
#3813 -
jj git pushcan now be configured to ask for confirmation before pushing
changes to a remote usinggit.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 diffcan now be colored. Each line uses one of the labels
graph line0tograph 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 thegraphand line labels. -
jj interdiff's--fromand--tooptions 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 runsupports--keep-changesflag to keep changes made by a command even
if it fails. This can be wanted behavior when using tools likePrekor
pre-commit. -
Using the
jsontemplate function withui.log-word-wrapset totruenow
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 tofalseto 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)andtry()now preserve matching
branch types, enablingif(x, 1, 2) + 3. -
Added
--when.commit-backendscondition for conditional configs based on a
repository's commit backend name (as returned byjj util backend name). -
New
revsets.workspace-addconfig to set the default parents of the new
working-copy commit created byjj workspace add.
Fixed bugs
-
In colocated workspaces,
--ignore-working-copyand--at-opnow prevent
changes from being exported to Git HEAD and refs. -
jj convergeno 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 clonenow strips trailing slashes before removing the.gitsuffix
when deriving the default destination directory, so URLs like
https://github.com/user/repo.git/clone intorepoinstead ofrepo.git. -
Initializing a workspace from, or importing
HEADin, a Git repository that
uses an unsupported reference storage backend such asreftablenow fails
with an error instead of leaving an incomplete.jjdirectory or treating
HEADas unborn. -
Fixed
jj git pushfailure 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)