Repository navigation
v0.48.0 #10842
nasamuffin
started this conversation in
General
v0.48.0
#10842
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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 backwardsor 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, andjj op diffcan now be colored. Each line uses one of the labelsgraph line0tograph line11, and keeps its label when it moves to anothercolumn. The labels have no color by default. Set them in the
[colors]tableto turn the colors on. Node symbols also receive the
graphand line labels.Breaking changes
jj bookmark setandjj bookmark movenow move bookmarks backwards orsideways with a warning instead of failing.
--allow-backwardsis deprecated.#8808
Deleted
jj debug snapshot. It was deprecated in 0.39.0. Usejj util snapshotinstead.jj gerrit uploadnow uploads the ancestors of the given revisions that arenot 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-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 pushedto are still not checked.
jj workspace addnow creates the new working-copy commit on top of theclosest immutable ancestor (
heads(::@ & immutable())) instead of on theparents of the current working-copy commit. Pass
-r @-or setrevsets.workspace-add = "@-"for the old behavior.jj workspace addnow fails when the current workspace doesn't have a workingcopy. 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-addtoa value that tolerates a missing
@, such ascoalesce(heads(::present(@) & immutable()), trunk()).Deprecations
jj bookmark setandjj bookmark movenow always move bookmarks backwardsor 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 uploadcommits. Each upload attempt signs the selected commits again.
jj git clonenow uses the object format (SHA-1 or SHA-256) of the remoterepository, unless
--object-hashis given. The format of an empty remotecan't be detected yet, so
git.object-hashis still used in that case.#3813
jj git pushcan now be configured to ask for confirmation before pushingchanges 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, andjj op diffcan now be colored. Each line uses one of the labelsgraph line0tograph line11, and keeps its label when it moves to anothercolumn. The labels have no color by default. Set them in the
[colors]tableto turn the colors on. Node symbols also receive the
graphand line labels.jj interdiff's--fromand--tooptions now accept revsets that resolveto 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 evenif it fails. This can be wanted behavior when using tools like
Prekorpre-commit.Using the
jsontemplate function withui.log-word-wrapset totruenowemits 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
falseto avoidreceiving invalid JSON objects on small terminals.
New
with(values..., |names...| body)templating function which allows you toassign 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 matchingbranch types, enabling
if(x, 1, 2) + 3.Added
--when.commit-backendscondition for conditional configs based on arepository's commit backend name (as returned by
jj util backend name).New
revsets.workspace-addconfig to set the default parents of the newworking-copy commit created by
jj workspace add.Fixed bugs
In colocated workspaces,
--ignore-working-copyand--at-opnow preventchanges from being exported to Git HEAD and refs.
jj convergeno longer prompts for an author when divergent commits have thesame 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.gitsuffixwhen 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 thatuses an unsupported reference storage backend such as
reftablenow failswith an error instead of leaving an incomplete
.jjdirectory or treatingHEADas unborn.Fixed
jj git pushfailure when pushing to multiple remotes with emptyupdates. #10647
Contributors
Thanks to the people who made this release happen!
This discussion was created from the release v0.48.0.
All reactions