Debian Codegraph @

CHANGELOG.md

raw ◀ ▶
1 Debian patch touch this file
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6 and this project adheres
7 to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
9 ## [Unreleased]
10
11 ### Release highlights
12
13 ### Breaking changes
14
15 ### Deprecations
16
17 ### New features
18
19 ### Fixed bugs
20
21 ## [0.45.1] - 2026-09-03
22
23 This release fixes an error that prevented the new jj-core crate from being
24 published.
25
26 ### Fixed bugs
27
28 * Building without `Cargo.lock` (e.g. `cargo install jj-cli`) works again
29 after all versions of the `bisync` crate, a transitive dependency of gix,
30 were yanked.
31
32 ## [0.45.0] - 2026-09-02
33
34 ### Release highlights
35
36 * A new `jj converge` command was added to help automatically resolve divergent
37 commits by combining them appropriately.
38
39 ### Breaking changes
40
41 * `jj config {edit,set,unset} --user` now targets the first loaded user
42 configuration file (e.g. `~/.config/jj/config.toml` or the first file in
43 `conf.d/`) instead of prompting interactively when multiple files exist.
44 Use `--file <PATH>` to target a specific config file.
45
46 * `jj git import` in non-colocated repositories no longer imports commits from a
47 detached Git HEAD branch.
48
49 ### Deprecations
50
51 None
52
53 ### New features
54
55 * The new `jj converge` command attempts to automatically resolve divergence by
56 creating a new commit that replaces the divergent commits. It applies
57 heuristics to try to automatically come up with a good solution, and falls
58 back to prompting the user if the heuristics are inconclusive. It can also run
59 in non-interactive mode, which aborts if prompting would be needed.
60
61 * `jj bisect` will now mention when it cannot unambiguously find the first bad
62 revision due to skips in evaluation.
63
64 * Git HEAD state is now tracked per worktree internally. This prepares
65 colocated repositories for support of multiple Git worktrees, where each
66 jj workspace can have its own Git HEAD. Existing repositories are migrated
67 automatically.
68
69 * `jj config {edit,set,unset}` now support a `--file <PATH>` option to
70 target a specific configuration file (such as files inside a `conf.d/`
71 directory or loaded via `--config-file`). This allows precise file targeting
72 and avoids interactive prompts when multiple config files exist.
73
74 ### Fixed bugs
75
76 * [The default `immutable_heads()` set](docs/config.md#set-of-immutable-commits)
77 now includes `untracked_remote_tags()`.
78
79 * `jj arrange` now scrolls the viewport to keep the selected commit visible
80 when the commit stack is taller than the terminal.
81 [#9033](https://github.com/jj-vcs/jj/issues/9033).
82
83 * The default pager flags now include `-K` (`--quit-on-intr`), so pressing
84 Ctrl+C in `less` exits cleanly instead of leaving the terminal in a
85 corrupted state (raw mode, visible escape sequences, broken input).
86
87 * A side of a conflict whose contents end with a carriage return no longer loses
88 that byte when the materialized conflict is parsed back, such as when a
89 conflicted file is snapshotted from the working copy.
90 [#9868](https://github.com/jj-vcs/jj/issues/9868)
91
92 * In colocated workspaces, `jj workspace update-stale` now correctly resets the
93 Git HEAD to the parent of the fresh working-copy commit.
94 [#9936](https://github.com/jj-vcs/jj/issues/9936)
95
96 * `jj run` no longer runs against the remaining revisions if a process exits
97 with a nonzero exit code.
98
99 * Fixed crash in `jj log` involving hidden revisions and the
100 `log-graph-prioritize` revset.
101 [#9975](https://github.com/jj-vcs/jj/issues/9975)
102
103 * In colocated repos, an external `git add` after a `jj` command no longer
104 produces a tree with duplicate entries (`git fsck: duplicateEntries`). `jj`
105 was leaving a stale cache-tree behind in `.git/index`. Repositories already
106 corrupted this way are not repaired by the fix.
107 [#9711](https://github.com/jj-vcs/jj/issues/9711)
108 [#8884](https://github.com/jj-vcs/jj/issues/8884)
109
110 ### Contributors
111
112 Thanks to the people who made this release happen!
113
114 * Aaron Bies (@slerpyyy)
115 * aaronabbott (@aabmass)
116 * Alexander Chen (@alexuser)
117 * Austin Seipp (@thoughtpolice)
118 * Baptiste Girardeau (@baptiste0928)
119 * Caleb White (@calebdw)
120 * Daniel Danner (@dnnr)
121 * David Rieber (@drieber)
122 * Gaëtan Lehmann (@glehmann)
123 * Gasper Stukelj (@mirkomartn)
124 * hexbinoct (@hexbinoct)
125 * Joseph Lou (@josephlou5)
126 * Keane Nguyen (@keanemind)
127 * LOG (@logarithmone1128)
128 * Martin von Zweigbergk (@martinvonz)
129 * OlshaMB (@OlshaMB)
130 * Philip Metzger (@PhilipMetzger)
131 * Priyanka Mandloi
132 * Remo Senekowitsch (@senekor)
133 * Riccardo Mazzarini (@noib3)
134 * Scott Sudharsan (@scott2000)
135 * sofia (@badp)
136 * Stephen Jennings (@jennings)
137 * Vaghinak Vardanyan (@vaghinak-vardanyan)
138 * Vincent Ging Ho Yim (@cenviity)
139 * Wang Yuantao (@0WD0)
140 * Yuya Nishihara (@yuja)
141
142 ## [0.44.0] - 2026-08-05
143
144 ### Release highlights
145
146 * Support for fetching and pushing tags has now been stabilized. Tags can be
147 tracked or untracked just like bookmarks. Tracked tags are pushed by default.
148
149 ### Breaking changes
150
151 * `jj git fetch` now fetches tags the same way it fetches bookmarks. Tags are
152 fetched as `<name>@<remote>`, and these remote tags are automatically tracked
153 by local tags of the same name. Running `jj git fetch` in an existing
154 repository will re-fetch all tags to initialize the tracking state.
155
156 Git's `tagOpt` is no longer respected. To disable tag fetching, set
157 `remotes.<name>.fetch-tags = '~*'` in the jj configuration.
158
159 * `jj git clone --fetch-tags=all|none|included` is removed in favor of
160 `--tag=PATTERN`.
161
162 * `jj git push --all` now pushes all tags in addition to bookmarks.
163
164 * The `WorkspaceRef.root()` and `RepoPath.absolute()` template functions now
165 return `Option<FsPath>` and `FsPath` respectively, instead of `String`. The
166 `path` keyword in `jj config list` templates now returns `Option<FsPath>`.
167
168 * `jj file search` now prints every matched line prefixed by the file path,
169 instead of only the file paths of files containing a match. Use
170 `--name-only` for the previous behavior.
171 [#9399](https://github.com/jj-vcs/jj/issues/9399)
172
173 * Passing an argument more than once is no longer an error. The last occurrence
174 wins, so `jj --no-pager --no-pager version` and `jj log -n 5 -n 10` now work,
175 and an argument baked into an alias or a wrapper can be given explicitly as
176 well. Arguments that can be specified multiple times, such as `--config` and
177 `jj log -r`, are unaffected and still collect all of their values.
178 [#8101](https://github.com/jj-vcs/jj/issues/8101)
179 [#9859](https://github.com/jj-vcs/jj/issues/9859)
180
181 ### Deprecations
182
183 None
184
185 ### New features
186
187 * New `merge_point()` revset function which (similar to `fork_point`) finds the
188 point where multiple branches merge.
189
190 * `jj workspace list` now shows workspace roots by default. The output can be
191 customized with `templates.workspace_list` or `-T`, and `WorkspaceRef.root()`
192 returns an optional `FsPath` value.
193 [#9713](https://github.com/jj-vcs/jj/pull/9713),
194 [#9826](https://github.com/jj-vcs/jj/pull/9826)
195
196 * New `try(expr, fallback...)` template function to suppress runtime errors.
197
198 * `jj run` now processes revisions from oldest to newest by default. The start
199 order is guaranteed: each revision begins execution only after the previous
200 one has started, even with `--jobs` higher than 1.
201
202 * `jj run` gained a `--passthrough` flag that connects the subprocess's
203 stdout/stderr directly to the terminal instead of capturing output.
204
205 * `jj run` gained a `--ignore-changes` flag to avoid editing any revisions even
206 if the command modifies the working copy.
207
208 * `jj run` gained a `--ignore-errors` flag to continue running against the
209 remaining revisions even if the command exits with a nonzero exit code.
210
211 * `jj file search` now supports `-n`/`--line-number` to prefix each match with
212 its 1-based line number within the file.
213
214 * `jj git push` gained a `--allow-conflicts` flag to allow pushing commits
215 containing conflicts.
216
217 * New `jj tag track`/`untrack` commands to associate local tags with remotes.
218 Note that fetched tags are tracked by default.
219
220 * Added `builtin_log()` revset alias for the built-in default `jj log` revset.
221 `revsets.log` now defaults to `builtin_log()`, so custom log revsets can
222 reuse the built-in default instead of copying its full expression.
223
224 * Added config option `diff.stat.max-bar-width` for use with `--stat` to limit
225 the `++--` bar width. In the templating language, `diff.stat()` can optionally
226 take a second (positional or named) argument `max_bar_width` for an equivalent
227 effect.
228
229 * `jj absorb` now supports `--interactive`/`-i`/`--tool` to let you
230 interactively choose which hunks from the source to consider for absorption.
231 This is useful when you only want to absorb *part* of a commit without first
232 splitting it. Any hunks that are not selected or cannot be absorbed remain in
233 the source commit.
234
235 ### Fixed bugs
236
237 * Recursive alias definitions are detected more precisely. jj can now expand
238 aliases that are simply repeated. For example, with the alias `jj = []`, the
239 command `jj jj jj` will resolve to `jj`. Aliases can also fall back to the
240 default command. For example, with the alias `i = ["--ignore-working-copy"]`,
241 `jj i` will resolve to `jj --ignore-working-copy`.
242
243 * Git temporary files are now cleaned up more reliably in the presence of
244 signals (e.g. `Ctrl-C`). This should reduce the rate of "Could not acquire
245 lock for index file" errors.
246 ([#7530](https://github.com/jj-vcs/jj/issues/7530))
247
248 * Fixed Git HEAD mismatch after the working copy became immutable.
249 [#9827](https://github.com/jj-vcs/jj/issues/9827)
250
251 * `jj` now creates a new working-copy revision as soon as the one of the current
252 workspace becomes immutable, as well as during snapshotting. This brings the
253 behavior closer to `jj` 0.42 and earlier.
254
255 * Snapshotting no longer fails if the working copy contains a path whose name
256 isn't valid UTF-8. Such paths can't be tracked, so they are now skipped and
257 reported as a warning instead.
258 [#9774](https://github.com/jj-vcs/jj/issues/9774)
259
260 * Fixed failure when reading configuration in copied repo with an empty
261 repo-level configuration directory.
262
263 * `jj diff` and `jj status` no longer omit a rename or copy in a merge commit
264 when the renamed source is present in more than one parent. The identical copy
265 record reported for each parent was mistaken for a conflict and discarded.
266 [#9752](https://github.com/jj-vcs/jj/issues/9752)
267
268 * `jj run` no longer panics when its revset includes a conflicted commit. The
269 conflict is now preserved in the rewritten commit.
270 [#9747](https://github.com/jj-vcs/jj/issues/9747)
271
272 * Fixed a panic when passing overly-large length parameters to ID templater
273 functions (`commit_id.short()`, `commit_id.shortest()`, etc.).
274 [#9833](https://github.com/jj-vcs/jj/issues/9833)
275
276 * `jj git import` and `export` in colocated workspaces are now disabled by
277 default. These commands usually do nothing, but they had a race condition.
278
279 ### Contributors
280
281 Thanks to the people who made this release happen!
282
283 * Aaron Bies (@slerpyyy)
284 * Ada Alakbarova (@ada4a)
285 * Alexandre Hallaine (@alexandre-hallaine)
286 * Amaan Qureshi (@amaanq)
287 * Austin Seipp (@thoughtpolice)
288 * Caleb White (@calebdw)
289 * Chawye Hsu (@chawyehsu)
290 * David Rieber (@drieber)
291 * Gaëtan Lehmann (@glehmann)
292 * hexbinoct (@hexbinoct)
293 * ivelieu (@ivelieu)
294 * Joseph Lou (@josephlou5)
295 * Josh McKinney (@joshka)
296 * Josh Steadmon (@steadmon)
297 * Kevin Liao (@kevincliao)
298 * Luna Schwalbe (@lunagl)
299 * Martin von Zweigbergk (@martinvonz)
300 * Matt Van Horn (@mvanhorn)
301 * Nika Layzell (@mystor)
302 * Niko Savola (@nikosavola)
303 * Nitzan Raz (@BackSlasher)
304 * Noah Lev (@camelid)
305 * OlshaMB (@OlshaMB)
306 * Philip Metzger (@PhilipMetzger)
307 * Remo Senekowitsch (@senekor)
308 * Rob Pilling (@bobrippling)
309 * Stephen Jennings (@jennings)
310 * Techcable (@Techcable)
311 * TogarashiPepper (@TogarashiPepper)
312 * Vladimir Petrzhikovskii (@0xdeafbeef)
313 * Waleed Khan (@arxanas)
314 * Wang Yuantao (@0WD0)
315 * xtqqczze (@xtqqczze)
316 * Yash Bavadiya (@xevrion)
317 * Yuya Nishihara (@yuja)
318
319 ## [0.43.0] - 2026-07-01
320
321 ### Release highlights
322
323 * `jj run` allows you to run a command over a set of changes, each with their
324 own private working copy; the commands may update the working copy and
325 changes/conflicts are propagated accordingly, e.g., `jj run -- cargo check
326 --all-features` or `jj run -- cargo fix` behaves as one might expect.
327
328 ### Breaking changes
329
330 * The deprecated `git_head()` and `git_refs()` functions have been removed from
331 revsets and templates.
332
333 * Git-like symbols (e.g. `refs/heads/main`) are no longer resolved to
334 revisions. Use the bookmark/tag `<name>` or `<name>@<remote>` syntax instead.
335
336 * The deprecated `ui.revsets-use-glob-by-default` option has been removed.
337
338 * `jj bookmark track`/`untrack` no longer supports `<kind>:<bookmark>@<remote>`
339 patterns. However, the `<bookmark>@<remote>` symbol syntax is still supported.
340 [#9226](https://github.com/jj-vcs/jj/issues/9226)
341
342 ### Deprecations
343
344 ### New features
345
346 * `jj show` now supports `--reversed` flag.
347
348 * `jj` now looks for config files in `/etc/jj`.
349
350 * `jj config gc` will delete configuration of deleted/moved repos from
351 `~/.config/jj/repos` folder.
352 [#9362](https://github.com/jj-vcs/jj/issues/9362)
353
354 * `jj run` allows you to run a command over a set of changes, each with their
355 own private working copy; the commands may update the working copy and
356 changes/conflicts are propagated accordingly, e.g., `jj run -- cargo check
357 --all-features` or `jj run -- cargo fix` behaves as one might expect.
358
359 * `jj gerrit upload` now supports the `-o` (`--option`) flag, which works like
360 `git push -o` (`--push-option`).
361
362 * `jj git fetch` now rebases the descendants of revisions that were rewritten
363 based on their change IDs. Previously, when multiple bookmarked revisions
364 existed in a stack, those rewritten revisions and their descendants wouldn't
365 always be rebased. Note that immutable descendants will not be rebased.
366
367 * Add a `forks()` revset function that yields all commits with more than 1 child.
368
369 * `colors` config now supports crossed-out text styling with
370 `{ crossed-out = true }`.
371
372 ### Fixed bugs
373
374 * On Windows, querying a path's file identity no longer follows symbolic links,
375 matching the behavior on Unix. Previously a symlink shared the identity of its
376 target, so two symlinks pointing at the same target were treated as the same
377 file. This identity check is used when writing the working copy to detect
378 aliases of the reserved `.git` and `.jj` directories.
379 [#8924](https://github.com/jj-vcs/jj/issues/8924)
380
381 * `jj` now creates a new working-copy revision during snapshotting if the
382 working copy was immutable. Previously, the new revision was created
383 immediately after the working copy became immutable.
384 [#7751](https://github.com/jj-vcs/jj/issues/7751)
385 [#9338](https://github.com/jj-vcs/jj/issues/9338)
386
387 * `jj git remote add` now warns if the new remote exactly matches an existing
388 remote's fetch URL or effective push URL.
389 [#413](https://github.com/jj-vcs/jj/issues/413)
390
391 * Fixed corrupt loose Git objects on Intel Raptor Lake CPU and aarch64.
392 Previously, jj could report a successful commit even though `git fsck` would
393 later fail with `incorrect data check`, `corrupt loose object`, or `missing
394 blob`, and later jj operations could fail with `corrupt deflate stream`.
395
396 ### Contributors
397
398 Thanks to the people who made this release happen!
399
400 * adlerd (@adlerd)
401 * ase (@adamse)
402 * Atakan Yenel (@atakanyenel)
403 * Austin Seipp (@thoughtpolice)
404 * Benjamin Tan (@bnjmnt4n)
405 * David Rieber (@drieber)
406 * figsoda (@figsoda)
407 * Gaëtan Lehmann (@glehmann)
408 * hexbinoct (@hexbinoct)
409 * Jakub Stasiak (@jstasiak)
410 * Jonas Carpay (@jonascarpay)
411 * Joseph Lou (@josephlou5)
412 * Josh McKinney (@joshka)
413 * Josh Steadmon (@steadmon)
414 * Martin von Zweigbergk (@martinvonz)
415 * Matt Stark (@matts1)
416 * Philip Metzger (@PhilipMetzger)
417 * shoce (@shoce)
418 * Stephen Jennings (@jennings)
419 * Thomas Axelsson (@thomas-2nd)
420 * Vincent Ging Ho Yim (@cenviity)
421 * Yuya Nishihara (@yuja)
422
423 ## [0.42.0] - 2026-06-04
424
425 ### Release highlights
426
427 * Switched to the mimalloc memory allocator for better multi-threaded
428 performance.
429
430 ### Breaking changes
431
432 * The following deprecated command options have been removed:
433 - `jj commit --reset-author`/`--author`
434 - `jj describe --no-edit`/`--edit`/`--reset-author`/`--author`
435 - `jj git push --allow-new`
436 - `jj metaedit --update-committer-timestamp`
437
438 * The following deprecated config options have been removed:
439 - `git.auto-local-bookmark`
440 - `git.push-new-bookmarks`
441
442 ### Deprecations
443
444 * `jj evolog` no longer supports legacy commit predecessors recorded in `jj` <
445 0.30.
446
447 ### New features
448
449
450 * Shell completions now surface descriptions for custom aliases,
451 revset-aliases, template-aliases, and fileset-aliases. Descriptions are
452 extracted from the `.doc` field of the alias definition if it is a table
453 with `.doc` and `.definition` properties.
454
455 * `jj show` now accepts multiple revisions, showing all of them one after the
456 other, behaving closer to `git show`.
457
458 * `jj git fetch` now generates evolution history based on change IDs. If change
459 IDs are preserved by the remote, local descendant revisions will be rebased
460 onto the rewritten parents.
461
462 * Added `jj util backend name` command that prints the commit backend being used
463 in the current repo.
464
465 * Added `edit-invocation-mode` config option for diff editors (e.g.
466 `jj diffedit`, `jj split`). When set to `"file-by-file"`, the editor is
467 launched once per changed file, making it possible to use per-file tools like
468 `vimdiff` for editing.
469
470 ### Fixed bugs
471
472 * `jj git remote add` now reports an error instead of panicking when the
473 remote name is empty or contains whitespace.
474 [#9099](https://github.com/jj-vcs/jj/issues/9099)
475
476 * Color-words diffs are now shown as separate before and after lines when color
477 output is disabled, making piped or redirected diffs readable.
478 [#5894](https://github.com/jj-vcs/jj/issues/5894)
479
480 * `jj bookmark forget` no longer prints `Forgot N local bookmarks.` when no
481 local bookmarks were actually forgotten (e.g. when only an untracked remote
482 bookmark matched). [#9181](https://github.com/jj-vcs/jj/issues/9181).
483
484 * The `builtin_log_redacted` template now also redacts workspace names.
485
486 ### Contributors
487
488 Thanks to the people who made this release happen!
489
490 * Alex Jaspersen (@ajaspers)
491 * Archer (@archer-321)
492 * ase (@adamse)
493 * Austin Seipp (@thoughtpolice)
494 * David Rieber (@drieber)
495 * Eyüp Can Akman (@eyupcanakman)
496 * Jakub Stasiak (@jstasiak)
497 * James Dixon (@lemonase)
498 * Joseph Lou (@josephlou5)
499 * Laurynas Keturakis (@laulauland)
500 * Luna Schwalbe (@lunagl)
501 * Martin von Zweigbergk (@martinvonz)
502 * Niko Savola (@nikosavola)
503 * OlshaMB (@OlshaMB)
504 * Sergey Kasmy (@SergeyKasmy)
505 * truffle (@truffle-dev)
506 * Vincent Ging Ho Yim (@cenviity)
507 * Yuya Nishihara (@yuja)
508
509 ## [0.41.0] - 2026-05-06
510
511 ### Release highlights
512
513 * `jj fix` now supports formatting specific line ranges (allowing you to format
514 only modified lines); see the configuration manual and notes below for more.
515
516 * The new global flag `--no-integrate-operation` will let you run a command without
517 impacting the repo state or the working copy, which is useful when automated tools
518 may create snapshots in the background.
519
520 ### Breaking changes
521
522 * The `--pattern` flag for `file search` now defaults to `regex:` instead of `glob:`.
523
524 * `jj git push --all`/`--tracked`/`-r REVSETS` no longer fails when revisions to
525 push are private or have conflicts. Bookmarks which aren't eligible to push
526 will be skipped.
527
528 * Branch/bookmark patterns passed to `jj git clone` are now saved to jj's repo
529 settings file instead of `.git/config`. Git fetch refspecs are set to the
530 default value.
531
532 ### Deprecations
533
534 * In the templating language, the `Operation` type's `.tags()` function has been
535 deprecated in favor of `.attributes()`.
536
537 ### New features
538
539 * The `--pattern` flag for `file search` now accepts various pattern kinds through
540 `kind:pattern` syntax.
541
542 * A new global flag `--no-integrate-operation` lets you run a command without
543 impacting the repo state or the working copy.
544
545 * A new config option `diff.git.show-path-prefix` can be used to suppress the
546 `a/` and `b/` path prefixes in the `diff --git` output.
547
548 * `jj fix` now supports line range-limited formatting via the `fix.tools.<name>.line-range-arg`
549 and `run-tool-if-zero-line-ranges` configs. This allows running tools only on modified
550 lines and fine-grained control over when the tool is run. If you have set the `line-range-arg`
551 config, use `--all-lines` to match the previous behavior of formatting the entire file.
552
553 * A new `replace(pattern, content, replacement)` template function is added
554 which supports replacement of content in templates, using a lambda to format
555 replacement text. It supports all string patterns, including regexes with
556 capture groups (e.g. `replace(regex:'(\w+) (\w+)', "hello world", |c| c.get(1) ++ " " ++ c.get(2))`).
557
558 * New `ByteString` template type for things like file content.
559
560 * `jj gerrit upload` now supports the new options `--message` (`-m`), `--edit`
561 and `--merged`. You can now also pass multiple hashtags by repeating the
562 `--hashtag` option.
563
564 * New `remotes.<name>.fetch-bookmarks`/`fetch-tags` options to [configure
565 default fetch targets.](docs/config.md#default-bookmarks-and-tags-to-fetch)
566
567 * `JJ_PAGER` can now override the `ui.pager` config, matching `JJ_EDITOR` for
568 callers that need a jj-specific environment override.
569
570 ### Fixed bugs
571
572 * Improving consistency with `git` handling of `.gitignore`, including `/`
573 after entries and `\r\r\n` for MacOS files.
574
575 * `jj status` filters untracked paths by fileset
576 [#9287](https://github.com/jj-vcs/jj/issues/9287)
577
578 * Improved performance for snapshotting, visibly improving `jj status`
579 speed for large repositories.
580
581 * Pre-existing Git submodule directories are no longer considered conflicts in
582 checkouts. [#8065](https://github.com/jj-vcs/jj/issues/8065).
583
584 * Fixed a panic in `jj gerrit upload` when run without `-r` and the
585 inferred revision was immutable. [#9398](https://github.com/jj-vcs/jj/issues/9398)
586
587 * `jj status` respects path filters in working copy summaries.
588
589 * `jj git remote rename`/`remove` now updates the `trunk()` alias.
590
591 * Commands would sometimes incorrectly diagnose a stale working copy and suggest
592 running `jj op integrate` when it would have no effect. This should now be
593 much less likely to happen in practice.
594 [#9314](https://github.com/jj-vcs/jj/issues/9314)
595
596 ### Contributors
597
598 Thanks to the people who made this release happen!
599
600 * Adrian Freund (@freundTech)
601 * ase (@adamse)
602 * Austin Seipp (@thoughtpolice)
603 * Benjamin Tan (@bnjmnt4n)
604 * Björn Kautler (@Vampire)
605 * David Higgs (@higgsd)
606 * David Rieber (@drieber)
607 * dzaima (@dzaima)
608 * Federico G. Schwindt (@fgsch)
609 * Gaëtan Lehmann (@glehmann)
610 * hewigovens (@hewigovens)
611 * Ilya Grigoriev (@ilyagr)
612 * jonmeow (@jonmeow)
613 * Joseph Lou (@josephlou5)
614 * Josh McKinney (@joshka)
615 * Jun Mukai (@jmuk)
616 * Lucas Garron (@lgarron)
617 * Martin von Zweigbergk (@martinvonz)
618 * Matt Stark (@matts1)
619 * Maximilian Gaß (@mxey)
620 * OlshaMB (@OlshaMB)
621 * Philip Metzger (@PhilipMetzger)
622 * rayaq
623 * Remo Senekowitsch (@senekor)
624 * rishiad (@rishiad)
625 * Ryan Patterson (@CGamesPlay)
626 * Sebastian Barfurth (@sbarfurth)
627 * Thomas Axelsson (@thomasa88)
628 * xtqqczze (@xtqqczze)
629 * Yuya Nishihara (@yuja)
630
631 ## [0.40.0] - 2026-04-01
632
633 ### Release highlights
634
635 None
636
637 ### Breaking changes
638
639 None
640
641 ### Deprecations
642
643 None
644
645 ### New features
646
647 * New `diff_lines_added()` and `diff_lines_removed()` revset functions for
648 matching content on only one side of a diff.
649
650 * The `end` parameter in the `String.substr(start, end)` templating method is
651 now optional. If not given, `substr()` returns from `start` to the end of the
652 string.
653
654 * `WorkspaceRef` templates now provide a `.root()` method to show the absolute
655 path to each workspace root.
656
657 * The `jj arrange` TUI now includes immediate parents and children. They are not
658 selectable and are dimmed by default.
659
660 * `jj arrange` uses the default log template (`builtin_log_compact`) instead of
661 the shorter commit summary style.
662
663 * In the `jj arrange` TUI, the "swap up/down" actions now move along graph edges
664 even if the commit rows are not adjacent.
665
666 * [Diff colors](docs/config.md#diff-colors-and-styles) can now be configured
667 differently for each format.
668
669 * `jj op log` now includes the name of the workspace the operation was created
670 from.
671
672 * The `config()` template function now accepts a `Stringify` expression instead
673 of `LiteralString`. This allows looking up configuration values dynamically.
674
675 * `jj op show`, `jj op diff`, `jj op log -p` now only show "interesting"
676 revisions by default (defined by `revsets.op-diff-changes-in`). A new flag,
677 `--show-changes-in`, can be used to override this. [#6083](https://github.com/jj-vcs/jj/issues/6083)
678
679 ### Fixed bugs
680
681 * `.gitignore` with UTF-8 BOM can now be parsed correctly.
682
683 * Fix incompatibility with gpgsm 2.5.x.
684
685 ### Contributors
686
687 Thanks to the people who made this release happen!
688
689 * Aaron Sutton (@aaronjsutton)
690 * Adam Sandberg Eriksson (@adamse)
691 * Anton Älgmyr (@algmyr)
692 * Austin Seipp (@thoughtpolice)
693 * Benjamin Tan (@bnjmnt4n)
694 * Ben Warren (@warrenbhw)
695 * Bryant Chandler (@brychanrobot)
696 * David Higgs (@higgsd)
697 * Filip Weiss (@fiws)
698 * Gabriel Goller (@kaffarell)
699 * Gaëtan Lehmann (@glehmann)
700 * Ilya Grigoriev (@ilyagr)
701 * Jeff Turner (@jefft)
702 * Joseph Lou (@josephlou5)
703 * Josh Steadmon (@steadmon)
704 * KITAGAWA Yasutaka (@kit494way)
705 * Liam (@terror)
706 * Li-Wen Hsu (@lwhsu)
707 * Martin von Zweigbergk (@martinvonz)
708 * Philip Metzger (@PhilipMetzger)
709 * Poliorcetics (@poliorcetics)
710 * Remo Senekowitsch (@senekor)
711 * Rob Pilling (@bobrippling)
712 * Scott Taylor (@scott2000)
713 * Shnatu
714 * Stephen Prater (@stephenprater)
715 * Yuya Nishihara (@yuja)
716 * Zeyi Fan (@fanzeyi)
717
718 ## [0.39.0] - 2026-03-04
719
720 ### Release highlights
721
722 * `jj arrange` command brings up a TUI where you can reorder and abandon
723 revisions. [#1531](https://github.com/jj-vcs/jj/issues/1531)
724
725 * `jj bookmark advance` automatically moves bookmarks forward to a
726 target revision (defaults to `@`) using customization points
727 `revsets.bookmark-advance-from` and `revsets.bookmark-advance-to`.
728 It is heavily inspired by the longstanding community alias `jj tug`.
729
730 ### Breaking changes
731
732 * Dropped support for legacy index files written by jj < 0.33. New index files
733 will be created as needed.
734
735 * The following deprecated config options have been removed:
736 - `core.fsmonitor`
737 - `core.watchman.register-snapshot-trigger`
738
739 * The deprecated command `jj op undo` has been removed. Use `jj op revert` or
740 `jj undo`/`redo` instead.
741
742 ### Deprecations
743
744 * `jj debug snapshot` is deprecated in favor of `jj util snapshot`. Although
745 this was an undocumented command in the first place, it will be removed after
746 6 months (v0.45.0) to give people time to migrate away.
747
748 ### New features
749
750 * Add support for push options in `jj git push` with the `--option` flag.
751 This allows users to pass options to the remote server when pushing commits.
752 The short alias `-o` is also supported.
753
754 * `jj new` now evaluates the `new_description` template to populate the
755 initial commit description when no `-m` message is provided.
756
757 * Templates now support `first()`, `last()`, `get(index)`, `reverse()`,
758 `skip(count)`, and `take(count)` methods on list types for more flexible
759 list manipulation.
760
761 * New `builtin_draft_commit_description_with_diff` template that includes the
762 diff in the commit description editor, making it easier to review changes
763 while writing commit messages.
764
765 * Revsets and templates now support `name:x` pattern aliases such as `'grep:x' =
766 'description(regex:x)'`.
767
768 * Filesets now support [user aliases](docs/filesets.md#aliases).
769
770 * `jj workspace add` now links with relative paths. This enables workspaces to work
771 inside containers or when moved together. Existing workspaces with absolute paths
772 will continue to work as before.
773
774 * `jj undo` now also outputs what operation was undone, in addition to the
775 operation restored to.
776
777 * Bookmarks with two or more consecutive `-` characters no longer need to be quoted
778 in revsets. For example, `jj diff -r '"foo--bar"'` can now be written as `jj diff -r foo--bar`.
779
780 * New flag `--simplify-parents` on `jj rebase` to apply the same transformation
781 as `jj simplify-parents` on the rebased commits.
782 [#7711](https://github.com/jj-vcs/jj/issues/7711)
783
784 * `jj rebase --branch` and `jj rebase --source` will no longer return an error
785 if the given argument resolves to an empty revision set
786 (`jj rebase --revisions` already behaved this way). Instead, a message will be
787 printed to inform the user why nothing has changed.
788
789 * Changed Git representation of conflicted commits to include files from the
790 first side of the conflict. This should prevent unchanged files from being
791 highlighted as "added" in editors when checking out a conflicted commit in a
792 colocated workspace.
793
794 * New template function `Timestamp::since(ts)` that returns the `TimestampRange`
795 between two timestamps. It can be used in conjunction with `.duration()` in
796 order to obtain a human-friendly duration between two `Timestamp`s.
797
798 * Added new `jj util snapshot` command to manually or programmatically trigger a
799 snapshot. This introduces an official alternative to the
800 previously-undocumented `jj debug snapshot` command. The Watchman integration
801 has also been updated to use this command instead.
802
803 * Changed background snapshotting to suppress stdout and stderr to avoid long
804 hangs.
805
806 * `jj gerrit upload` now supports a variety of new flags documented in
807 [gerrit's documentation](https://gerrit-review.googlesource.com/Documentation/user-upload.html).
808 This includes, for example, `[email protected]` and
809 `--label=Auto-Submit`.
810
811 * `jj gerrit upload` now recognizes Change-Id explicitly set via the alternative
812 trailer `Link`, and will generate a `Link: <review-url>/id/<change-id>` trailer
813 if `gerrit.review-url` option is set.
814
815 * `jj gerrit upload` no longer requires the `-r` flag, and will default to
816 uploading what you're currently working on.
817
818 * Templates now support `Serialize` operations on the result of `map()` and
819 `if()`, when supported by the underlying type.
820
821 * `jj bookmark rename` now supports `--overwrite-existing` to allow renaming a
822 bookmark even if the new name already exists, effectively replacing the
823 existing bookmark.
824
825 * Conditional configuration based on environment variables with `--when.environments`.
826 [#8779](https://github.com/jj-vcs/jj/pull/8779)
827
828 ### Fixed bugs
829
830 * Windows: use native file locks (`LockFileEx`) instead of polling with file
831 creation, fixing issues with "pending delete" semantics leaving lock files
832 stuck.
833
834 * `jj` now safely detaches the `HEAD` of alternate Git worktrees if their
835 checked-out branch is moved or deleted during Git export.
836
837 * `jj file track --include-ignored` now works when `fsmonitor.backend="watchman"`.
838 [#8427](https://github.com/jj-vcs/jj/issues/8427)
839
840 ### Contributors
841
842 Thanks to the people who made this release happen!
843
844 * Aaron Christiansen (@AaronC81)
845 * Andy Brenneke (@abrenneke)
846 * Anton Älgmyr (@algmyr)
847 * Austin Seipp (@thoughtpolice)
848 * Benjamin Tan (@bnjmnt4n)
849 * Bram Geron (@bgeron)
850 * Bryce Berger (@bryceberger)
851 * Caleb White (@calebdw)
852 * countskm (@countdigi)
853 * David Higgs (@higgsd)
854 * Evan Simmons (@estk)
855 * Fedor Sheremetyev (@sheremetyev)
856 * Gaëtan Lehmann (@glehmann)
857 * George Christou (@gechr)
858 * Hubert Lefevre (@Paluche)
859 * Ian (@chronologos)
860 * Ilya Grigoriev (@ilyagr)
861 * Jaen (@jaens)
862 * Joseph Lou (@josephlou5)
863 * Josh Steadmon (@steadmon)
864 * Martin von Zweigbergk (@martinvonz)
865 * Matt Kulukundis (@fowles)
866 * Matt Stark (@matts1)
867 * max (@pr2502)
868 * Nika Layzell (@mystor)
869 * Philip Metzger (@PhilipMetzger)
870 * Richard Smith (@zygoloid)
871 * Scott Taylor (@scott2000)
872 * Steve Klabnik (@steveklabnik)
873 * Theodore Dubois (@tbodt)
874 * William Phetsinorath (@shikanime)
875 * xtqqczze (@xtqqczze)
876 * Yuya Nishihara (@yuja)
877
878 ## [0.38.0] - 2026-02-04
879
880 ### Release highlights
881
882 * Per-repo and per-workspace config is now stored outside the repo, for security
883 reasons. This is not a breaking change because we automatically migrate
884 legacy repos to this new format. `.jj/repo/config.toml` and
885 `.jj/workspace-config.toml` should no longer be used.
886
887 ### Breaking changes
888
889 * The minimum supported `git` command version is now 2.41.0. macOS users will
890 need to either upgrade "Developer Tools" to 26 or install Git from
891 e.g. Homebrew.
892
893 * Deprecated `ui.always-allow-large-revsets` setting and `all:` revset modifier
894 have been removed.
895
896 * `<name>@<remote>` revset symbols can also be resolved to remote tags. Tags are
897 prioritized ahead of bookmarks.
898
899 * Legacy placeholder support used for unset `user.name` or `user.email` has been
900 removed. Commits containing these values will now be pushed with `jj git push`
901 without producing an error.
902
903 * If any side of a conflicted file is missing a terminating newline, then the
904 materialized file in the working copy will no longer be terminated by a
905 newline.
906
907 ### Deprecations
908
909 * The revset function `diff_contains()` has been renamed to `diff_lines()`.
910
911 ### New features
912
913 * `jj git fetch` now shows details of abandoned commits (change IDs and
914 descriptions) by default, matching the `jj abandon` output format.
915 [#3081](https://github.com/jj-vcs/jj/issues/3081)
916
917 * `jj workspace root` now accepts an optional `--name` argument to show
918 the root path of the specified workspace (defaults to the current one). When
919 given a workspace that was created before this release, it errors out.
920
921 * `jj git push --bookmark <name>` will now automatically track the bookmark if
922 it isn't tracked with any remote already.
923
924 * Add `git_web_url([remote])` template function that converts a git remote URL
925 to a web URL, suitable for opening in a browser. Defaults to the "origin"
926 remote.
927
928 * New `divergent()` revset function for divergent changes.
929
930 * String pattern values in revsets and templates can now be substituted by
931 aliases. For example, `grep(x) = description(regex:x)` now works.
932
933 * A new config option `remotes.<name>.auto-track-created-bookmarks` behaves
934 similarly to `auto-track-bookmarks`, but it only applies to bookmarks created
935 locally. Setting it to `"*"` is now the closest replacement for the deprecated
936 `git.push-new-bookmarks` option.
937
938 * `jj tag list` can now be filtered by revset.
939
940 * Conflict markers will use LF or CRLF as the line ending according to the
941 contents of the file.
942 [#7376](https://github.com/jj-vcs/jj/issues/7376)
943
944 * New *experimental* `jj git fetch --tag` flag to fetch tags in the same way as
945 bookmarks. If specified, tags won't be fetched implicitly, and only tags
946 matching the pattern will be fetched as `<name>@<remote>` tags. The fetched
947 remote tags will be tracked by the local tags of the same name.
948
949 * New `remote_tags()` revset function to query remote tags.
950
951 * New builtin `hyperlink()` template function that gracefully falls back to
952 text when outputting to a non-terminal, instead of emitting raw OSC 8 escape
953 codes. [#7592](https://github.com/jj-vcs/jj/issues/7592)
954
955 ### Fixed bugs
956
957 * `jj git init --colocate` now refuses to run inside a Git worktree, providing
958 a helpful error message with alternatives.
959 [#8052](https://github.com/jj-vcs/jj/issues/8052)
960
961 * `jj git push` now ensures that tracked remote bookmarks are updated even if
962 there are no mappings in the Git fetch refspecs.
963 [#5115](https://github.com/jj-vcs/jj/issues/5115)
964
965 * `jj git fetch`/`push` now forwards most of `git` stderr outputs such as
966 authentication requests. [#5760](https://github.com/jj-vcs/jj/issues/5760)
967
968 * Conflicted bookmarks and tags in `trunk()` will no longer generate verbose
969 warnings. The configured `trunk()` alias will temporarily be disabled.
970 [#8501](https://github.com/jj-vcs/jj/issues/8501)
971
972 * Dynamic shell completion for `jj config unset` now only completes
973 configuration options which are set.
974 [#7774](https://github.com/jj-vcs/jj/issues/7774)
975
976 * Dynamic shell completion no longer attempts to resolve aliases at the
977 completion position. This previously prevented a fully-typed alias from
978 being accepted on some shells and replaced it entirely with its expansion on
979 bash. Now, the completion will only resolve the alias, and suggest candidates
980 accordingly, after the cursor has been advanced to the next position.
981 [#7773](https://github.com/jj-vcs/jj/issues/7773)
982
983 * Setting the editor via `ui.editor`, `$EDITOR`, or `JJ_EDITOR` now respects shell quoting.
984
985 * `jj gerrit upload` will no longer swallow errors and surface if changes fail
986 to get pushed to gerrit.
987 [#8568](https://github.com/jj-vcs/jj/issues/8568)
988
989 * Conflict labels are now preserved correctly when restoring files from commits
990 with different conflict labels.
991
992 * The empty tree is now always written when the working copy is empty.
993 [#8480](https://github.com/jj-vcs/jj/issues/8480)
994
995 * When using the Watchman filesystem monitor, changes to .gitignore now trigger
996 a scan of the affected subtree so newly unignored files are discovered.
997 [#8427](https://github.com/jj-vcs/jj/issues/8427)
998
999 * `jj file track --include-ignored` no longer shows spurious "large file" warnings
1000 after successfully tracking the file.
1001 [#8826](https://github.com/jj-vcs/jj/issues/8826)
1002
1003 * `--quiet` now hides progress bars.
1004
1005 ### Contributors
1006
1007 Thanks to the people who made this release happen!
1008
1009 * Benjamin Davies (@Benjamin-Davies)
1010 * Bryce Berger (@bryceberger)
1011 * Chris Rose (@offbyone)
1012 * Daniel Morsing (@DanielMorsing)
1013 * David Fröhlingsdorf (@2079884FDavid)
1014 * David Higgs (@higgsd)
1015 * David Rieber (@drieber)
1016 * Federico G. Schwindt (@fgsch)
1017 * Gaëtan Lehmann (@glehmann)
1018 * George Christou (@gechr)
1019 * itstrivial
1020 * Jeff Turner (@jefft)
1021 * Jonas Greitemann (@jgreitemann)
1022 * Jonas Helgemo (@jonashelgemo)
1023 * Joseph Lou (@josephlou5)
1024 * Kaiyi Li (@06393993)
1025 * Lukas Wirth (@Veykril)
1026 * Martin von Zweigbergk (@martinvonz)
1027 * Matt Stark (@matts1)
1028 * Paul Smith (@paulsmith)
1029 * Pavan Kumar Sunkara (@pksunkara)
1030 * Philip Metzger (@PhilipMetzger)
1031 * Remo Senekowitsch (@senekor)
1032 * Sami Jawhar (@sjawhar)
1033 * Scott Taylor (@scott2000)
1034 * Simone Cattaneo (@simonecattaneo91)
1035 * Steve Klabnik (@steveklabnik)
1036 * tom (@lecafard)
1037 * Vincent Ging Ho Yim (@cenviity)
1038 * \_WD\_ (@0WD0)
1039 * xtqqczze (@xtqqczze)
1040 * Yuya Nishihara (@yuja)
1041 * yz (@yzheng453)
1042
1043 ## [0.37.0] - 2026-01-07
1044
1045 ### Release highlights
1046
1047 * A new syntax for referring to hidden and divergent change IDs is available:
1048 `xyz/n` where `n` is a number. For instance, `xyz/0` refers to the latest
1049 version of `xyz`, while `xyz/1` refers to the previous version of `xyz`.
1050 This allows you to perform actions like `jj restore --from xyz/1 --to xyz` to
1051 restore `xyz` to its previous contents, if you made a mistake.
1052
1053 For divergent changes, the numeric suffix will always be shown in the log,
1054 allowing you to disambiguate them in a similar manner.
1055
1056 ### Breaking changes
1057
1058 * [String patterns](docs/revsets.md#string-patterns) in revsets, command
1059 arguments, and configuration are now parsed as globs by default. Use
1060 `substring:` or `exact:` prefix as needed.
1061
1062 * `remotes.<name>.auto-track-bookmarks` is now parsed the same way they
1063 are in revsets and can be combined with logical operators.
1064
1065 * `jj bookmark track`/`untrack` now accepts `--remote` argument. If omitted, all
1066 remote bookmarks matching the bookmark names will be tracked/untracked. The
1067 old `<bookmark>@<remote>` syntax is deprecated in favor of `<bookmark>
1068 --remote=<remote>`.
1069
1070 * On Windows, symlinks that point to a path with `/` won't be supported. This
1071 path is [invalid on Windows](https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions).
1072
1073 * The template alias `format_short_change_id_with_hidden_and_divergent_info(commit)`
1074 has been replaced by `format_short_change_id_with_change_offset(commit)`.
1075
1076 * The following deprecated config options have been removed:
1077 - `git.push-bookmark-prefix`
1078 - `ui.default-description`
1079 - `ui.diff.format`
1080 - `ui.diff.tool`
1081
1082 * The deprecated `commit_id.normal_hex()` template method has been removed.
1083
1084 * Template expansion that did not produce a terminating newline will not be
1085 fixed up to provide one by `jj log`, `jj evolog`, or `jj op log`.
1086
1087 * The `diff` conflict marker style can now use `\\\\\\\` markers to indicate
1088 the continuation of a conflict label from the previous line.
1089
1090 ### Deprecations
1091
1092 * The `git_head()` and `git_refs()` functions will be removed from revsets and
1093 templates. `git_head()` should point to the `first_parent(@)` revision in
1094 colocated repositories. `git_refs()` can be approximated as
1095 `remote_bookmarks(remote=glob:*) | tags()`.
1096
1097 ### New features
1098
1099 * The `config()` template function now returns `Option<ConfigValue>` instead of
1100 failing if the config value is not found. This allows checking if a config
1101 exists (e.g. `if(config("user.email"), ...)`).
1102
1103 * Updated the executable bit representation in the local working copy to allow
1104 ignoring executable bit changes on Unix. By default we try to detect the
1105 filesystem's behavior, but this can be overridden manually by setting
1106 `working-copy.exec-bit-change = "respect" | "ignore"`.
1107
1108 * `jj workspace add` now also works for empty destination directories.
1109
1110 * `jj git remote` family of commands now supports different fetch and push URLs.
1111
1112 * `[colors]` table now supports `dim = true` attribute.
1113
1114 * In color-words diffs, context line numbers are now rendered with decreased
1115 intensity.
1116
1117 * Hidden and divergent commits can now be unambiguously selected using their
1118 change ID combined with a numeric suffix. For instance, if there are two
1119 commits with change ID `xyz`, then one can be referred to as `xyz/0` and the
1120 other can be referred to as `xyz/1`. These suffixes are shown in the log when
1121 necessary to make a change ID unambiguous.
1122
1123 * `jj util gc` now prunes unreachable files in `.jj/repo/store/extra` to save
1124 disk space.
1125
1126 * Early version of a `jj file search` command for searching for a pattern in
1127 files (like `git grep`).
1128
1129 * Conflict labels now contain information about where the sides of a conflict
1130 came from (e.g. `nlqwxzwn 7dd24e73 "first line of description"`).
1131
1132 * `--insert-before` now accepts a revset that resolves to an empty set when
1133 used with `--insert-after`. The behavior is similar to `--onto`.
1134
1135 * `jj tag list` now supports `--sort` option.
1136
1137 * `TreeDiffEntry` type now has a `display_diff_path()` method that formats
1138 renames/copies appropriately.
1139
1140 * `TreeDiffEntry` now has a `status_char()` method that returns
1141 single-character status codes (M/A/D/C/R).
1142
1143 * `CommitEvolutionEntry` type now has a `predecessors()` method which
1144 returns the predecessor commits (previous versions) of the entry's commit.
1145
1146 * `CommitEvolutionEntry` type now has a `inter_diff()` method which
1147 returns a `TreeDiff` between the entry's commit and its predecessor version.
1148 Optionally accepts a fileset literal to limit the diff.
1149
1150 * `jj file annotate` now reports an error for non-files instead of succeeding
1151 and displaying no content.
1152
1153 * `jj workspace forget` now warns about unknown workspaces instead of failing.
1154
1155 ### Fixed bugs
1156
1157 * Broken symlink on Windows. [#6934](https://github.com/jj-vcs/jj/issues/6934).
1158
1159 * Fixed failure on exporting moved/deleted annotated tags to Git. Moved tags are
1160 exported as lightweight tags.
1161
1162 * `jj gerrit upload` now correctly handles mixed explicit and implicit
1163 Change-Ids in chains of commits ([#8219](https://github.com/jj-vcs/jj/pull/8219))
1164
1165 * `jj git push` now updates partially-pushed remote bookmarks accordingly.
1166 [#6787](https://github.com/jj-vcs/jj/issues/6787)
1167
1168 * Fixed problem of loading large Git packfiles.
1169 https://github.com/GitoxideLabs/gitoxide/issues/2265
1170
1171 * The builtin pager won't get stuck when stdin is redirected.
1172
1173 * `jj workspace add` now prevents creating an empty workspace name.
1174
1175 * Fixed checkout of symlinks pointing to themselves or `.git`/`.jj` on Unix. The
1176 problem would still remain on Windows if symlinks are enabled.
1177 [#8348](https://github.com/jj-vcs/jj/issues/8348)
1178
1179 * Fixed a bug where jj would fail to read git delta objects from pack files.
1180 https://github.com/GitoxideLabs/gitoxide/issues/2344
1181
1182 ### Contributors
1183
1184 Thanks to the people who made this release happen!
1185
1186 * Anton Älgmyr (@algmyr)
1187 * Austin Seipp (@thoughtpolice)
1188 * Bryce Berger (@bryceberger)
1189 * Carlos Knippschild (@chuim)
1190 * Cole Helbling (@cole-h)
1191 * David Higgs (@higgsd)
1192 * Eekle (@Eekle)
1193 * Gaëtan Lehmann (@glehmann)
1194 * Ian Wrzesinski (@isuffix)
1195 * Ilya Grigoriev (@ilyagr)
1196 * Julian Howes (@jlnhws)
1197 * Kaiyi Li (@06393993)
1198 * Lukas Krejci (@metlos)
1199 * Martin von Zweigbergk (@martinvonz)
1200 * Matt Stark (@matts1)
1201 * Ori Avtalion (@salty-horse)
1202 * Scott Taylor (@scott2000)
1203 * Shaoxuan (Max) Yuan (@ffyuanda)
1204 * Stephen Jennings (@jennings)
1205 * Steve Fink (@hotsphink)
1206 * Steve Klabnik (@steveklabnik)
1207 * Theo Buehler (@botovq)
1208 * Thomas Castiglione (@gulbanana)
1209 * Vincent Ging Ho Yim (@cenviity)
1210 * xtqqczze (@xtqqczze)
1211 * Yuantao Wang (@0WD0)
1212 * Yuya Nishihara (@yuja)
1213
1214 ## [0.36.0] - 2025-12-03
1215
1216 ### Release highlights
1217
1218 * The documentation has moved from <https://jj-vcs.github.io/jj/> to
1219 <https://docs.jj-vcs.dev/>.
1220
1221 301 redirects are being issued towards the new domain, so any existing links
1222 should not be broken.
1223
1224 * Fixed race condition that could cause divergent operations when running
1225 concurrent `jj` commands in colocated repositories. It is now safe to
1226 continuously run e.g. `jj log` without `--ignore-working-copy` in one
1227 terminal while you're running other commands in another terminal.
1228 [#6830](https://github.com/jj-vcs/jj/issues/6830)
1229
1230 * `jj` now ignores `$PAGER` set in the environment and uses `less -FRX` on most
1231 platforms (`:builtin` on Windows). See [the docs](docs/config.md#pager) for
1232 more information, and [#3502](https://github.com/jj-vcs/jj/issues/3502) for
1233 motivation.
1234
1235 ### Breaking changes
1236
1237 * In [filesets or path patterns](docs/filesets.md#file-patterns), glob matching
1238 is enabled by default. You can use `cwd:"path"` to match literal paths.
1239
1240 * In the following commands, [string pattern
1241 arguments](docs/revsets.md#string-patterns) are now parsed the same way they
1242 are in revsets and can be combined with logical operators: `jj bookmark
1243 delete`/`forget`/`list`/`move`, `jj tag delete`/`list`, `jj git
1244 clone`/`fetch`/`push`
1245
1246 * In the following commands, unmatched bookmark/tag names is no longer an
1247 error. A warning will be printed instead: `jj bookmark
1248 delete`/`forget`/`move`/`track`/`untrack`, `jj tag delete`, `jj git
1249 clone`/`push`
1250
1251 * The default string pattern syntax in revsets will be changed to `glob:` in a
1252 future release. You can opt in to the new default by setting
1253 `ui.revsets-use-glob-by-default=true`.
1254
1255 * Upgraded `scm-record` from v0.8.0 to v0.9.0. See release notes at
1256 <https://github.com/arxanas/scm-record/releases/tag/v0.9.0>.
1257
1258 * The minimum supported Rust version (MSRV) is now 1.89.
1259
1260 * On macOS, the deprecated config directory `~/Library/Application Support/jj`
1261 is not read anymore. Use `$XDG_CONFIG_HOME/jj` instead (defaults to
1262 `~/.config/jj`).
1263
1264 * Sub-repos are no longer tracked. Any directory containing `.jj` or `.git`
1265 is ignored. Note that Git submodules are unaffected by this.
1266
1267 ### Deprecations
1268
1269 * The `--destination`/`-d` arguments for `jj rebase`, `jj split`, `jj revert`,
1270 etc. were renamed to `--onto`/`-o`. The reasoning is that `--onto`,
1271 `--insert-before`, and `--insert-after` are all destination arguments, so
1272 calling one of them `--destination` was confusing and unclear. The old names
1273 will be removed at some point in the future, but we realize that they are
1274 deep in muscle memory, so you can expect an unusually long deprecation period.
1275
1276 * `jj describe --edit` is deprecated in favor of `--editor`.
1277
1278 * The config options `git.auto-local-bookmark` and `git.push-new-bookmarks` are
1279 deprecated in favor of `remotes.<name>.auto-track-bookmarks`. For example:
1280
1281 ```toml
1282 [remotes.origin]
1283 auto-track-bookmarks = "glob:*"
1284 ```
1285
1286 For more details, refer to
1287 [the docs](docs/config.md#automatic-tracking-of-bookmarks).
1288
1289 * The flag `--allow-new` on `jj git push` is deprecated. In order to push new
1290 bookmarks, please track them with `jj bookmark track`. Alternatively, consider
1291 setting up an auto-tracking configuration to avoid the chore of tracking
1292 bookmarks manually. For example:
1293
1294 ```toml
1295 [remotes.origin]
1296 auto-track-bookmarks = "glob:*"
1297 ```
1298
1299 For more details, refer to
1300 [the docs](docs/config.md#automatic-tracking-of-bookmarks).
1301
1302 ### New features
1303
1304 * `jj commit`, `jj describe`, `jj squash`, and `jj split` now accept
1305 `--editor`, which ensures an editor will be opened with the commit
1306 description even if one was provided via `--message`/`-m`.
1307
1308 * All `jj` commands show a warning when the provided `fileset` expression
1309 doesn't match any files.
1310
1311 * Added `files()` template function to `DiffStats`. This supports per-file stats
1312 like `lines_added()` and `lines_removed()`
1313
1314 * Added `join()` template function. This is different from `separate()` in that
1315 it adds a separator between all arguments, even if empty.
1316
1317 * `RepoPath` template type now has a `absolute() -> String` method that returns
1318 the absolute path as a string.
1319
1320 * Added `format_path(path)` template alias that controls how file paths are printed
1321 with `jj file list`.
1322
1323 * New built-in revset aliases `visible()` and `hidden()`.
1324
1325 * Unquoted `*` is now allowed in revsets. `bookmarks(glob:foo*)` no longer
1326 needs quoting.
1327
1328 * `jj prev/next --no-edit` now generates an error if the working-copy has some
1329 children.
1330
1331 * A new config option `remotes.<name>.auto-track-bookmarks` can be set to a
1332 string pattern. New bookmarks matching it will be automatically tracked for
1333 the specified remote. See
1334 [the docs](docs/config.md#automatic-tracking-of-bookmarks).
1335
1336 * `jj log` now supports a `--count` flag to print the number of commits instead
1337 of displaying them.
1338
1339 * `Commit` type now has a `conflicted_files()` method that returns a list of
1340 files with merge conflicts.
1341
1342 * `TreeEntry` type now has a `conflict_side_count()` method that returns the number
1343 of sides in a merge conflict (1 for non-conflicted files, 2 or more for
1344 conflicts).
1345
1346 ### Fixed bugs
1347
1348 * `jj fix` now prints a warning if a tool failed to run on a file.
1349 [#7971](https://github.com/jj-vcs/jj/issues/7971)
1350
1351 * Shell completion now works with non‑normalized paths, fixing the previous
1352 panic and allowing prefixes containing `.` or `..` to be completed correctly.
1353 [#6861](https://github.com/jj-vcs/jj/issues/6861)
1354
1355 * Shell completion now always uses forward slashes to complete paths, even on
1356 Windows. This renders completion results viable when using jj in Git Bash.
1357 [#7024](https://github.com/jj-vcs/jj/issues/7024)
1358
1359 * Unexpected keyword arguments now return a parse failure for the `coalesce()`
1360 and `concat()` templating functions.
1361
1362 * Nushell completion script documentation add `-f` option, to keep it up to
1363 date.
1364 [#8007](https://github.com/jj-vcs/jj/issues/8007)
1365
1366 * Ensured that with Git submodules, remnants of your submodules do not show up
1367 in the working copy after running `jj new`.
1368 [#4349](https://github.com/jj-vcs/jj/issues/4349)
1369
1370 ### Contributors
1371
1372 Thanks to the people who made this release happen!
1373
1374 * abgox (@abgox)
1375 * ase (@adamse)
1376 * Björn Kautler (@Vampire)
1377 * Bryce Berger (@bryceberger)
1378 * Chase Naples (@cnaples79)
1379 * David Higgs (@higgsd)
1380 * edef (@edef1c)
1381 * Evan Mesterhazy (@emesterhazy)
1382 * Fedor (@sheremetyev)
1383 * Gaëtan Lehmann (@glehmann)
1384 * George Christou (@gechr)
1385 * Hubert Lefevre (@Paluche)
1386 * Ilya Grigoriev (@ilyagr)
1387 * Jonas Greitemann (@jgreitemann)
1388 * Joseph Lou (@josephlou5)
1389 * Julia DeMille (@judemille)
1390 * Kaiyi Li (@06393993)
1391 * Kyle Lippincott (@spectral54)
1392 * Lander Brandt (@landaire)
1393 * Lucio Franco (@LucioFranco)
1394 * Luke Randall (@lukerandall)
1395 * Martin von Zweigbergk (@martinvonz)
1396 * Matt Stark (@matts1)
1397 * Mitchell Skaggs (@magneticflux-)
1398 * Peter Schilling (@schpet)
1399 * Philip Metzger (@PhilipMetzger)
1400 * QingyaoLin (@QingyaoLin)
1401 * Remo Senekowitsch (@senekor)
1402 * Scott Taylor (@scott2000)
1403 * Stephen Jennings (@jennings)
1404 * Steve Klabnik (@steveklabnik)
1405 * Tejas Sanap (@whereistejas)
1406 * Tommi Virtanen (@tv42)
1407 * Velociraptor115 (@Velociraptor115)
1408 * Vincent Ging Ho Yim (@cenviity)
1409 * Yuya Nishihara (@yuja)
1410
1411 ## [0.35.0] - 2025-11-05
1412
1413 ### Release highlights
1414
1415 * Workspaces can now have their own separate configuration. For instance, you
1416 can use `jj config set --workspace` to update a configuration option only in
1417 the current workspace.
1418
1419 * After creating a local bookmark, it is now possible to use `jj bookmark track`
1420 to associate the bookmark with a specific remote before pushing it. When
1421 pushing a tracked bookmark, it is not necessary to use `--allow-new`.
1422
1423 * The new `jj git colocation enable` and `jj git colocation disable` commands
1424 allow converting between colocated and non-colocated workspaces.
1425
1426 ### Breaking changes
1427
1428 * The `remote_bookmarks(remote=pattern)` revset now includes Git-tracking
1429 bookmarks if the specified `pattern` matches `git`. The default is
1430 `remote=~exact:"git"` as before.
1431
1432 * The deprecated flag `--summary` of `jj abandon` has been removed.
1433
1434 * The deprecated command `jj backout` has been removed, use `jj revert` instead.
1435
1436 * The following deprecated config options have been removed:
1437 - `signing.sign-all`
1438 - `core.watchman.register_snapshot_trigger`
1439 - `diff.format`
1440
1441 ### Deprecations
1442
1443 * `jj bisect run --command <cmd>` is deprecated in favor of
1444 `jj bisect run -- <cmd>`.
1445
1446 * `jj metaedit --update-committer-timestamp` was renamed to
1447 `jj metaedit --force-rewrite` since the old name (and help text)
1448 incorrectly suggested that the committer name and email would _not_
1449 be updated.
1450
1451 ### New features
1452
1453 * Workspaces may have an additional layered configuration, located at
1454 `.jj/workspace-config.toml`. `jj config` subcommands which took layer options
1455 like `--repo` now also support `--workspace`.
1456
1457 * `jj bookmark track` can now associate new local bookmarks with remote.
1458 Tracked bookmarks can be pushed without `--allow-new`.
1459 [#7072](https://github.com/jj-vcs/jj/issues/7072)
1460
1461 * The new `jj git colocation` command provides sub-commands to show the
1462 colocation state (`status`), to convert a non-colocated workspace into
1463 a colocated workspace (`enable`), and vice-versa (`disable`).
1464
1465 * New `jj tag set`/`delete` commands to create/update/delete tags locally.
1466 Created/updated tags are currently always exported to Git as lightweight
1467 tags. If you would prefer them to be exported as annotated tags, please give
1468 us feedback on [#7908](https://github.com/jj-vcs/jj/issues/7908).
1469
1470 * Templates now support a `.split(separator, [limit])` method on strings to
1471 split a string into a list of substrings.
1472
1473 * `-G` is now available as a short form of `--no-graph` in `jj log`, `jj evolog`,
1474 `jj op log`, `jj op show` and `jj op diff`.
1475
1476 * `jj metaedit` now accepts `-m`/`--message` option to non-interactively update
1477 the change description.
1478
1479 * The `CryptographicSignature.key()` template method now also works for SSH
1480 signatures and returns the corresponding public key fingerprint.
1481
1482 * Added `template-aliases.empty_commit_marker`. Users can override this value in
1483 their config to change the "(empty)" label on empty commits.
1484
1485 * Add support for `--when.workspaces` config scopes.
1486
1487 * Add support for `--when.hostnames` config scopes. This allows configuration to
1488 be conditionally applied based on the hostname set in `operation.hostname`.
1489
1490 * `jj bisect run` accepts the command and arguments to pass to the command
1491 directly as positional arguments, such as
1492 `jj bisect run --range=..main -- cargo check --all-targets`.
1493
1494 * Divergent changes are no longer marked red in immutable revisions. Since the
1495 revision is immutable, the user shouldn't take any action, so the red color
1496 was unnecessarily alarming.
1497
1498 * New commit template keywords `local`/`remote_tags` to show only local/remote
1499 tags. These keywords may be useful in non-colocated Git repositories where
1500 local and exported `@git` tags can point to different revisions.
1501
1502 * `jj git clone` now supports the `--branch` option to specify the branch(es)
1503 to fetch during clone. If present, the first matching branch is used as the
1504 working-copy parent.
1505
1506 * Revsets now support logical operators in string patterns.
1507
1508 * `jj file track` now accepts an `--include-ignored` flag to track files that
1509 are ignored by `.gitignore` or exceed the `snapshot.max-new-file-size` limit.
1510 [#2837](https://github.com/jj-vcs/jj/issues/2837)
1511
1512 ### Fixed bugs
1513
1514 * `jj metaedit --author-timestamp` twice with the same value no longer
1515 edits the change twice in some cases.
1516
1517 * `jj squash`: fixed improper revision rebase when both `--insert-after` and
1518 `--insert-before` were used.
1519
1520 * `jj undo` can now revert "fetch"/"import" operation that involves tag updates.
1521 [#6325](https://github.com/jj-vcs/jj/issues/6325)
1522
1523 * Fixed parsing of `files(expr)` revset expression including parentheses.
1524 [#7747](https://github.com/jj-vcs/jj/issues/7747)
1525
1526 * Fixed `jj describe --stdin` to append a final newline character.
1527
1528 ### Contributors
1529
1530 Thanks to the people who made this release happen!
1531
1532 * Alpha Chen (@kejadlen)
1533 * Angel Ezquerra (@AngelEzquerra)
1534 * ase (@adamse)
1535 * Austin Seipp (@thoughtpolice)
1536 * Benjamin Brittain (@benbrittain)
1537 * bipul (@bipulmgr)
1538 * Brian Schroeder (@bts)
1539 * Bryce Berger (@bryceberger)
1540 * Cole Helbling (@cole-h)
1541 * Daniel Luz (@mernen)
1542 * David Higgs (@higgsd)
1543 * Defelo (@Defelo)
1544 * Fedor (@sheremetyev)
1545 * Gabriel Goller (@kaffarell)
1546 * Gaëtan Lehmann (@glehmann)
1547 * George Christou (@gechr)
1548 * Ilya Grigoriev (@ilyagr)
1549 * Isaac Corbrey (@icorbrey)
1550 * James Coman (@jamescoman)
1551 * Joseph Lou (@josephlou5)
1552 * Lander Brandt (@landaire)
1553 * Martin von Zweigbergk (@martinvonz)
1554 * Michael Chirico (@MichaelChirico)
1555 * Owen Brooks (@owenbrooks)
1556 * Peter Schilling (@schpet)
1557 * Philip Metzger (@PhilipMetzger)
1558 * Remo Senekowitsch (@senekor)
1559 * Ross Smyth (@RossSmyth)
1560 * Scott Taylor (@scott2000)
1561 * Steve Fink (@hotsphink)
1562 * Steve Klabnik (@steveklabnik)
1563 * Theo Buehler (@botovq)
1564 * Theodore Dubois (@tbodt)
1565 * Theodore Keloglou (@sirodoht)
1566 * Yuya Nishihara (@yuja)
1567
1568 ## [0.34.0] - 2025-10-01
1569
1570 ### Release highlights
1571
1572 * Support for uploading changes to Gerrit Code Review with `jj gerrit upload`.
1573 This lets you submit trees or multiple stacks of work at once. Support
1574 for fetching changes, submitting changes, and other operations is not yet
1575 implemented. This should be considered experimental, and we welcome feedback
1576 on using it.
1577
1578 * Support for automated bisection using `jj bisect run`; this will continuously
1579 bisect a commit range until a given commit is found to trigger a bug.
1580
1581 ### Breaking changes
1582
1583 * Git-based repositories are now colocated by default. Configure `git.colocate =
1584 false` to keep the previous behavior.
1585
1586 * Conflicts written by jj < 0.11 are no longer supported. They will now appear
1587 as regular files with a `.jjconflict` suffix and JSON contents.
1588
1589 * The minimum supported Rust version (MSRV) is now 1.88.
1590
1591 ### Deprecations
1592
1593 * Various flags on `jj describe` and `jj commit` have been deprecated in favor
1594 of `jj metaedit`. They are:
1595 * `describe`: `--author`, `--reset-author`, `--no-edit`
1596 * `commit`: `--author`, `--reset-author`
1597
1598 * The storage format of remote bookmarks and tags has changed. Remote bookmarks
1599 will be written in both old and new formats to retain forward compatibility.
1600 Git-tracking tags are also recorded for future native tagging support. This
1601 change should be transparent, but let us know if you see anything odd.
1602
1603 ### New features
1604
1605 * The new command `jj bisect run` uses binary search to find a commit that
1606 introduced a bug.
1607
1608 * The default editor on Unix is now `nano` instead of `pico`.
1609
1610 * New config option `merge.hunk-level = "word"` to enable word-level merging.
1611
1612 * New config option `merge.same-change = "keep"` to disable lossy resolution
1613 rule for same-change conflicts.
1614 [#6369](https://github.com/jj-vcs/jj/issues/6369)
1615
1616 * Templates now support a `replace()` method on strings for pattern-based
1617 string replacement with optional limits. Supports all string patterns, including
1618 regex with capture groups (e.g. `"hello world".replace(regex:'(\w+) (\w+)', "$2 $1")`).
1619
1620 * A new builtin `hyperlink(url, text)` template alias creates clickable
1621 hyperlinks using [OSC8 escape sequences](https://github.com/Alhadis/OSC8-Adoption)
1622 for terminals that support them.
1623
1624 * Added a new conditional configuration `--when.platforms` to include
1625 settings only on certain platforms.
1626
1627 * External diff commands now support substitution variable `$width` for the
1628 number of available terminal columns.
1629
1630 * The new `jj gerrit upload` command allows you to upload given revisions to an
1631 instance of Gerrit Code Review.
1632
1633 * `jj bookmark create/set/move` use the working copy as a default again and
1634 no longer require an explicit revision argument. This walks back a
1635 deprecation from `jj 0.26`, as the community feedback was mostly negative.
1636 Instead, bookmarking an empty revision now produces a warning, to help you
1637 catch the case where you meant to bookmark the parent revision.
1638
1639 * The revset function `exactly(x, n)` will now evaluate `x` and error if it does
1640 not have exactly `n` elements.
1641
1642 * `jj util exec` now matches the exit status of the program it runs, and
1643 doesn't print anything.
1644
1645 * `jj config get` now supports displaying array and table config values.
1646
1647 * `jj util exec` sets the environment variable `JJ_WORKSPACE_ROOT`
1648
1649 ### Fixed bugs
1650
1651 * Fetching repositories that have submodules no longer errors even if
1652 `submodule.recurse=true` is set in `.gitconfig` (but jj still isn't able to
1653 fetch the submodules or to operate on them).
1654
1655 ### Contributors
1656
1657 Thanks to the people who made this release happen!
1658
1659 * Angel Ezquerra (@AngelEzquerra)
1660 * Anton Älgmyr (@algmyr)
1661 * Antonin Delpeuch (@wetneb)
1662 * Austin Seipp (@thoughtpolice)
1663 * Benjamin Tan (@bnjmnt4n)
1664 * Conner Petzold (@ConnerPetzold)
1665 * Daniel Luz (@mernen)
1666 * Daniele Sassoli (@DanieleSassoli)
1667 * David Barsky (@davidbarsky)
1668 * Dinu Blanovschi (@dnbln)
1669 * Gaëtan Lehmann (@glehmann)
1670 * George Christou (@gechr)
1671 * Ian Wrzesinski (@isuffix)
1672 * Ilya Grigoriev (@ilyagr)
1673 * Isaac Corbrey (@icorbrey)
1674 * Ivan Petkov (@ipetkov)
1675 * Jonas Fierlings (@PigeonF)
1676 * loudgolem (@phanirithvij)
1677 * Martin von Zweigbergk (@martinvonz)
1678 * Matt Stark (@matts1)
1679 * Matt T. Proud (@matttproud)
1680 * Michael Pratt (@prattmic)
1681 * MochikoNyan (@MochikoNyan)
1682 * Philip Metzger (@PhilipMetzger)
1683 * Reilly Brogan (@ReillyBrogan)
1684 * Remo Senekowitsch (@senekor)
1685 * Reuven Lazarus (@rlazarus)
1686 * Scott Taylor (@scott2000)
1687 * Stephen Jennings (@jennings)
1688 * Steven Sherry (@Steven0351)
1689 * Theo Buehler (@botovq)
1690 * Yuya Nishihara (@yuja)
1691
1692 ## [0.33.0] - 2025-09-03
1693
1694 ### Release highlights
1695
1696 * `jj undo` is now *sequential*: invoking it multiple times in sequence
1697 repeatedly undoes actions in the operation log. Previously, `jj undo` would
1698 only undo *the most recent* operation in the operation log. As a result, a new
1699 `jj redo` command has been added.
1700
1701 * Experimental support for improving query performance over filesets and file
1702 queries (like `jj log path/to/file.txt`) has been added. This is not enabled
1703 by default. To enable this, you must use the `jj debug index-changed-paths`
1704 command.
1705
1706 ### Breaking changes
1707
1708 * `jj evolog` templates now accept `CommitEvolutionEntry` as context type. To
1709 get `Commit` properties, use `commit.<method>()`. To customize the default
1710 output, set `templates.evolog` instead of `templates.log`.
1711
1712 * `jj op show` now uses `templates.op_show` configuration for its default template
1713 instead of `templates.op_log`.
1714
1715 * The deprecated config option `git.auto-local-branch` has been removed. Use
1716 `git.auto-local-bookmark` instead.
1717
1718 * The deprecated `Signature.username()` template method has been removed. Use
1719 `Signature.email().local()` instead.
1720
1721 * The deprecated `--config-toml` flag has been removed. Use
1722 `--config=NAME=VALUE` or `--config-file=PATH` instead.
1723
1724 * `jj undo` can now undo multiple operations progressively by calling it
1725 repeatedly, whereas previously, running `jj undo` twice was previously a no-op
1726 (it only undid the last change).
1727
1728 * `jj git fetch` will now only fetch the refspec patterns configured on remotes
1729 when the `--branch` option is omitted. Only simple refspec patterns are
1730 currently supported, and anything else (like refspecs which rename branches)
1731 will be ignored.
1732
1733 * The `conflict` label used for coloring log graph nodes was renamed to
1734 `conflicted`.
1735
1736 ### Deprecations
1737
1738 * The on-disk index format has changed. `jj` will write index files in both old
1739 and new formats, so old `jj` versions should be able to read these index
1740 files. This compatibility layer will be removed in a future release.
1741
1742 * `jj op undo` is deprecated in favor of `jj op revert`. (`jj undo` is still
1743 available, but with new semantics. See also the breaking changes above.)
1744
1745 * The argument `<operation>` of `jj undo` is deprecated in favor of
1746 `jj op revert <operation>`.
1747
1748 * The `--what` flag on `jj undo` is deprecated. Consider using
1749 `jj op restore --what` instead.
1750
1751 ### New features
1752
1753 * The new command `jj redo` can progressively redo operations that were
1754 previously undone by multiple calls to `jj undo`.
1755
1756 * Templates now support `any()` and `all()` methods on lists to check whether
1757 any or all elements satisfy a predicate. Example: `parents.any(|c| c.mine())`
1758 returns true if any parent commit is authored by the user.
1759
1760 * Add experimental support for indexing changed paths, which will speed up `jj
1761 log PATH` query, `jj file annotate`, etc. The changed-path index can be
1762 enabled by `jj debug index-changed-paths` command. Indexing may take tens of
1763 minutes depending on the number of merge commits. The indexing command UI is
1764 subject to change. [#4674](https://github.com/jj-vcs/jj/issues/4674)
1765
1766 * `jj config list` now supports `-T'json(self) ++ "\n"'` serialization output.
1767
1768 * `jj file show` now accepts `-T`/`--template` option to insert file metadata.
1769
1770 * The template language now allows arbitrary whitespace between any operators.
1771
1772 * The new configuration option `git.colocate=boolean` controls whether or not
1773 Git repositories are colocated by default.
1774
1775 * Both `jj git clone` and `jj git init` now take a `--no-colocate` flag to
1776 disable colocation (in case `git.colocate` is set to `true`.)
1777
1778 * `jj git remote add` and `jj git clone` now support `--fetch-tags` to control
1779 when tags are fetched for all subsequent fetches.
1780
1781 * `jj git fetch` now supports `--tracked` to fetch only tracked bookmarks.
1782
1783 * `jj diff --stat` now shows the change in size to binary files.
1784
1785 * `jj interdiff`, `jj evolog -p`, and `jj op log -p` now show diff of commit
1786 descriptions.
1787
1788 * `jj log` and `jj op log` output can now be anonymized with the
1789 `builtin_log_redacted` and `builtin_op_log_redacted` templates.
1790
1791 * `jj git init` now checks for an `upstream` remote in addition to `origin` when
1792 setting the repository-level `trunk()` alias. The `upstream` remote takes
1793 precedence over `origin` if both exist.
1794
1795 * Add the `jj metaedit` command, which modifies a revision's metadata. This can
1796 be used to generate a new change-id, which may help resolve some divergences.
1797 It also has options to modify author name, email and timestamp, as well as to
1798 modify committer timestamp.
1799
1800 * Filesets now support case-insensitive glob patterns with the `glob-i:`,
1801 `cwd-glob-i:`, and `root-glob-i:` pattern kinds. For example, `glob-i:"*.rs"`
1802 will match both `file.rs` and `FILE.RS`.
1803
1804 * `jj op show` now accepts `-T`/`--template` option to customize the operation
1805 output using template expressions, similar to `jj op log`. Also added
1806 `--no-op-diff` flag to suppress the operation diff.
1807
1808 * A nearly identical string pattern system as revsets is now supported in the
1809 template language, and is exposed as `string.match(pattern)`.
1810
1811 * Merge tools can use the `$path` argument to learn where the file they
1812 are merging will end up in the repository.
1813
1814 ### Fixed bugs
1815
1816 * `jj git clone` now correctly fetches all tags, unless `--fetch-tags` is
1817 explicitly specified, in which case the specified option will apply for both
1818 the initial clone and subsequent fetches.
1819
1820 * Operation and working-copy state files are now synchronized to disk on save.
1821 This will mitigate data corruption on system crash.
1822 [#4423](https://github.com/jj-vcs/jj/issues/4423)
1823
1824 ### Packaging changes
1825
1826 * The test suite no longer optionally uses Taplo CLI or jq, and packagers can
1827 remove them as dependencies if present.
1828
1829 ### Contributors
1830
1831 * Austin Seipp (@thoughtpolice)
1832 * Benjamin Tan (@bnjmnt4n)
1833 * Christian Hufnagel (@OvidiusCicero)
1834 * Clément (@drawbu)
1835 * Daniel Luz (@mernen)
1836 * Emily (@emilazy)
1837 * Evan Martin (@evmar)
1838 * Gaëtan Lehmann (@glehmann)
1839 * George Christou (@gechr)
1840 * Graham Christensen (@grahamc)
1841 * Hegui Dai (@Natural-selection1)
1842 * Ian Wrzesinski (@isuffix)
1843 * Ilya Grigoriev (@ilyagr)
1844 * Isaac Corbrey (@icorbrey)
1845 * Ivan Petkov (@ipetkov)
1846 * Joaquín Triñanes (@JoaquinTrinanes)
1847 * Kaiyi Li (@06393993)
1848 * Martin von Zweigbergk (@martinvonz)
1849 * Nigthknight (@nigthknight)
1850 * Nikhil Marathe (@nikhilm)
1851 * Remo Senekowitsch (@senekor)
1852 * Tijs-B (@Tijs-B)
1853 * Yuya Nishihara (@yuja)
1854
1855 ## [0.32.0] - 2025-08-06
1856
1857 ### Breaking changes
1858
1859 * In revsets, symbol expressions (such as change ID prefix) no longer resolve to
1860 multiple revisions, and error out if resolved to more than one revisions. Use
1861 `change_id(prefix)` or `bookmarks(exact:name)` to query divergent changes or
1862 conflicted bookmarks. Commands like `jj rebase` no longer require `all:` to
1863 specify multiple destination revisions.
1864
1865 * `jj op abandon` now discards previous versions of a change (or predecessors)
1866 if they become unreachable from the operation history. The evolution history
1867 is truncated accordingly.
1868
1869 Once `jj op abandon` and `jj util gc` are run in a repository, old versions of
1870 `jj` might get "commit not found" error on `jj evolog`.
1871
1872 * `commit.working_copies()` template method now returns `List<WorkspaceRef>`
1873
1874 * The previously predefined `amend` alias has been removed. You can restore it
1875 by setting the config `aliases.amend = ["squash"]`.
1876
1877 ### Deprecations
1878
1879 * The `all:` revset modifier and `ui.always-allow-large-revsets` setting is
1880 planned to be removed in a future release.
1881 [#6016](https://github.com/jj-vcs/jj/issues/6016)
1882
1883 * Rename the `core.fsmonitor` and `core.watchman` settings to
1884 `fsmonitor.backend`, and `fsmonitor.watchman` respectively.
1885
1886 ### New features
1887
1888 * `jj workspace list` now accepts `-T`/`--template` option to customize its
1889 output via templates.
1890
1891 * Added `templates.workspace_list` template to customize the output of
1892 `jj workspace list`.
1893
1894 * `jj fix` now buffers the standard error stream from subprocesses and emits
1895 the output from each all at once. The file name is printed before the output.
1896
1897 * `jj status` now collapses fully untracked directories into one line.
1898 It still fully traverses them while snapshotting but they won't clutter up
1899 the output with all of their contents.
1900
1901 * Add the `working-copy.eol-conversion` config which is similar to the git
1902 `core.autocrlf` config. A heuristics is used to detect if a file is a binary
1903 file to prevent the EOL conversion from changing binary files unexpectedly.
1904
1905 * Add a `.parents()` method to the
1906 [`Operation`](docs/templates.md#operation-type) type in the templating
1907 language.
1908
1909 * Merge tools config can now explicitly forbid using them as diff editors or
1910 diff formatters. Built-in tools that do not function well as diff editing
1911 tools or as diff formatters will now report an error when used as such.
1912
1913 * `jj diffedit` now accepts filesets to edit only the specified paths.
1914
1915 * AnnotationLine objects in templates now have a `original_line_number() ->
1916 Integer` method.
1917
1918 * Commit templates now support `.files()` to list all existing files at that
1919 revision.
1920
1921 * Glob patterns now support `{foo,bar}` syntax. There may be subtle behavior
1922 changes as we use the [globset](https://crates.io/crates/globset) library now.
1923
1924 * The new `bisect(x)` revset function can help bisect a range of commits to
1925 find when a bug was introduced.
1926
1927 * New `first_parent()` and `first_ancestors()` revset functions which are
1928 similar to `parents()` and `ancestors()`, but only traverse the first parent
1929 of each commit (similar to Git's `--first-parent` option).
1930
1931 * New `signing.backends.ssh.revocation-list` config for specifying a list of revoked
1932 public keys for commit signature verification.
1933
1934 * `jj fix` commands now replace `$root` with the workspace's root path. This is
1935 useful for tools stored inside the workspace.
1936
1937 ### Fixed bugs
1938
1939 * Fixed an error in `jj util gc` caused by the empty blob being missing from
1940 the Git store. [#7062](https://github.com/jj-vcs/jj/issues/7062)
1941
1942 * `jj op diff -p` and `jj op log -p` now show content diffs from the first
1943 predecessor only. [#7090](https://github.com/jj-vcs/jj/issues/7090)
1944
1945 * `jj git fetch` no longer shows `NaN%` progress when connecting to slow remotes.
1946 [#7155](https://github.com/jj-vcs/jj/issues/7155)
1947
1948 ### Contributors
1949
1950 Thanks to the people who made this release happen!
1951
1952 * adamnemecek (@adamnemecek)
1953 * Alexander Kobjolke (@jakalx)
1954 * Apromixately (@Apromixately)
1955 * Austin Seipp (@thoughtpolice)
1956 * Bryce Berger (@bryceberger)
1957 * Daniel Danner (@dnnr)
1958 * Daniel Luz (@mernen)
1959 * Evan Martin (@evmar)
1960 * George Christou (@gechr)
1961 * George Elliott-Hunter (@george-palmsens)
1962 * Hubert Głuchowski (@afishhh)
1963 * Ilya Grigoriev (@ilyagr)
1964 * Jade Lovelace (@lf-)
1965 * Jake Martin (@jake-m-commits)
1966 * Jan Klass (@Kissaki)
1967 * Joaquín Triñanes (@JoaquinTrinanes)
1968 * Josh Steadmon (@steadmon)
1969 * Kaiyi Li (@06393993)
1970 * Martin von Zweigbergk (@martinvonz)
1971 * Nigthknight (@nigthknight)
1972 * Ori Avtalion (@salty-horse)
1973 * Pablo Brasero (@pablobm)
1974 * Pavan Kumar Sunkara (@pksunkara)
1975 * Philip Metzger (@PhilipMetzger)
1976 * phoebe (@phoreverpheebs)
1977 * Remo Senekowitsch (@senekor)
1978 * Scott Taylor (@scott2000)
1979 * Stephen Jennings (@jennings)
1980 * Theo Buehler (@botovq)
1981 * Tyarel8 (@Tyarel8)
1982 * Yuya Nishihara (@yuja)
1983
1984 ## [0.31.0] - 2025-07-02
1985
1986 ### Breaking changes
1987
1988 * Revset expressions like `hidden_id | description(x)` now [search the specified
1989 hidden revision and its ancestors](docs/revsets.md#hidden-revisions) as well
1990 as all visible revisions.
1991
1992 * Commit templates no longer normalize `description` by appending final newline
1993 character. Use `description.trim_end() ++ "\n"` if needed.
1994
1995 ### Deprecations
1996
1997 * The `git.push-bookmark-prefix` setting is deprecated in favor of
1998 `templates.git_push_bookmark`, which supports templating. The old setting can
1999 be expressed in template as `"<prefix>" ++ change_id.short()`.
2000
2001 ### New features
2002
2003 * New `change_id(prefix)`/`commit_id(prefix)` revset functions to explicitly
2004 query commits by change/commit ID prefix.
2005
2006 * The `parents()` and `children()` revset functions now accept an optional
2007 `depth` argument. For instance, `parents(x, 3)` is equivalent to `x---`, and
2008 `children(x, 3)` is equivalent to `x+++`.
2009
2010 * `jj evolog` can now follow changes from multiple revisions such as divergent
2011 revisions.
2012
2013 * `jj diff` now accepts `-T`/`--template` option to customize summary output.
2014
2015 * Log node templates are now specified in toml rather than hardcoded.
2016
2017 * Templates now support `json(x)` function to serialize values in JSON format.
2018
2019 * The ANSI 256-color palette can be used when configuring colors. For example,
2020 `colors."diff removed token" = { bg = "ansi-color-52", underline = false }`
2021 will apply a dark red background on removed words in diffs.
2022
2023 ### Fixed bugs
2024
2025 * `jj file annotate` can now process files at a hidden revision.
2026
2027 * `jj op log --op-diff` no longer fails at displaying "reconcile divergent
2028 operations." [#4465](https://github.com/jj-vcs/jj/issues/4465)
2029
2030 * `jj util gc --expire=now` now passes the corresponding flag to `git gc`.
2031
2032 * `change_id`/`commit_id.shortest()` template functions now take conflicting
2033 bookmark and tag names into account.
2034 [#2416](https://github.com/jj-vcs/jj/issues/2416)
2035
2036 * Fixed lockfile issue on stale file handles observed with NFS.
2037
2038 ### Packaging changes
2039
2040 * `aarch64-windows` builds (release binaries and `main` snapshots) are now provided.
2041
2042 ### Contributors
2043
2044 Thanks to the people who made this release happen!
2045
2046 * Anton Älgmyr (@algmyr)
2047 * Austin Seipp (@thoughtpolice)
2048 * Benjamin Brittain (@benbrittain)
2049 * Cyril Plisko (@imp)
2050 * Daniel Luz (@mernen)
2051 * Gaëtan Lehmann (@glehmann)
2052 * Gilad Woloch (@giladwo)
2053 * Greg Morenz (@gmorenz)
2054 * Igor Velkov (@iav)
2055 * Ilya Grigoriev (@ilyagr)
2056 * Jade Lovelace (@lf-)
2057 * Jonas Greitemann (@jgreitemann)
2058 * Josh Steadmon (@steadmon)
2059 * juemrami (@juemrami)
2060 * Kaiyi Li (@06393993)
2061 * Lars Francke (@lfrancke)
2062 * Martin von Zweigbergk (@martinvonz)
2063 * Osama Qarem (@osamaqarem)
2064 * Philip Metzger (@PhilipMetzger)
2065 * raylu (@raylu)
2066 * Scott Taylor (@scott2000)
2067 * Vincent Ging Ho Yim (@cenviity)
2068 * Yuya Nishihara (@yuja)
2069
2070 ## [0.30.0] - 2025-06-04
2071
2072 ### Release highlights
2073
2074 * The experimental support from release 0.29.0 for transferring the change ID
2075 to/from Git remotes has been enabled by default. The change ID is stored in
2076 the Git commit itself (in a commit header called `change-id`), which means
2077 it will be transferred by regular `git push` etc. Please let us know if you
2078 run into any problems with it. You can disable it setting
2079 `git.write-change-id-header`. Note that some Git remotes (e.g GitLab) and
2080 some Git commands (e.g. `git rebase`) do not preserve the change ids when
2081 they rewrite commits.
2082
2083 * `jj rebase` now automatically abandons divergent commits if another commit
2084 with the same change ID is already present in the destination with identical
2085 changes.
2086
2087 * `jj split` has gained `--message`, `--insert-before`, `--insert-after`, and
2088 `--destination` options.
2089
2090 * `jj evolog` can show associated operations for commits created by new jj
2091 versions.
2092
2093 ### Breaking changes
2094
2095 * The old `libgit2` code path for fetches and pushes has been removed,
2096 and the `git.subprocess` setting along with it.
2097
2098 * In templates, bookmark/tag/remote names are now formatted in revset symbol
2099 notation. The type of `bookmark.remote()` is changed to `Option<_>`.
2100 `bookmark.remote() == "foo"` still works, but `bookmark.remote().<method>()`
2101 might need `if(bookmark.remote(), ..)` to suppress error.
2102
2103 * `jj rebase` now automatically abandons divergent commits if another commit
2104 with the same change ID is already present in the destination with identical
2105 changes. To keep these divergent commits, use the `--keep-divergent` flag.
2106
2107 * The deprecated `--skip-empty` flag for `jj rebase` has been removed. Use the
2108 `--skip-emptied` flag instead.
2109
2110 * The deprecated `jj branch` subcommands have been removed. Use the `jj
2111 bookmark` subcommands instead.
2112
2113 * `jj util completion` now requires the name of the shell as a positional
2114 argument and no longer produces Bash completions by default. The deprecated
2115 optional arguments for different shells have been removed.
2116
2117 * External diff tools are now run in the temporary directory containing
2118 the before (`left`) and after (`right`) directories, making diffs appear
2119 more pleasing for tools that display file paths prominently. Users can
2120 opt out of this by setting `merge-tools.<tool>.diff-do-chdir = false`,
2121 but this will likely be removed in a future release. Please report any
2122 issues you run into.
2123
2124 * The minimum supported Rust version (MSRV) is now 1.85.0.
2125
2126 ### Deprecations
2127
2128 * The `ui.diff.format` and `ui.diff.tool` config options have been merged as
2129 `ui.diff-formatter`. The builtin format can be specified as `:<format>`
2130 (e.g. `ui.diff-formatter=":git"` for Git diffs.)
2131
2132 * The `.normal_hex()` method will be removed from the `CommitId` template type.
2133 It's useful only for the `ChangeId` type.
2134
2135 ### New features
2136
2137 * `jj split` has gained a `--message` option to set the description of the
2138 commit with the selected changes.
2139
2140 * `jj split` has gained the ability to place the revision with the selected
2141 changes anywhere in the revision tree with the `--insert-before`,
2142 `--insert-after` and `--destination` command line flags.
2143
2144 * Added `git.track-default-bookmark-on-clone` setting to control whether to
2145 track the default remote bookmark on `jj git clone`.
2146
2147 * Templates can now do arithmetic on integers with the `+`, `-`, `*`, `/`, and
2148 `%` infix operators.
2149
2150 * Evolution history is now stored in the operation log. `jj evolog` can show
2151 associated operations for commits created by new jj versions.
2152
2153 ### Fixed bugs
2154
2155 * Work around a git issue that could cause subprocess operations to hang if the
2156 `core.fsmonitor` gitconfig is set in the global or system gitconfigs.
2157 [#6440](https://github.com/jj-vcs/jj/issues/6440)
2158
2159 * `jj parallelize` can now parallelize groups of changes that _start_ with an
2160 immutable change, but do not contain any other immutable changes.
2161
2162 * `jj` will no longer warn about deprecated paths on macOS if the configured
2163 XDG directory is the deprecated one (~/Library/Application Support).
2164
2165 * The builtin diff editor now correctly handles splitting changes where a file
2166 is replaced by a directory of the same name.
2167 [#5189](https://github.com/jj-vcs/jj/issues/5189)
2168
2169 ### Packaging changes
2170
2171 * Due to the removal of the `libgit2` code path, packagers should remove any
2172 dependencies on `libgit2`, `libssh2`, Zlib, OpenSSL, and `pkg-config`, and
2173 ensure they are not setting the Cargo `git2` or `vendored-openssl` features.
2174
2175 ### Contributors
2176
2177 Thanks to the people who made this release happen!
2178
2179 * Alper Cugun (@alper)
2180 * Austin Seipp (@thoughtpolice)
2181 * Benjamin Brittain (@benbrittain)
2182 * Benjamin Tan (@bnjmnt4n)
2183 * Bryce Berger (@bryceberger)
2184 * Colin Nelson (@orthros)
2185 * Doug Stephen (@dljsjr)
2186 * Emily (@emilazy)
2187 * Eyvind Bernhardsen (@eyvind)
2188 * Felix Geisendörfer (@felixge)
2189 * Gaëtan Lehmann (@glehmann)
2190 * Ilya Grigoriev (@ilyagr)
2191 * Isaac Corbrey (@icorbrey)
2192 * Jonas Greitemann (@jgreitemann)
2193 * Josep Mengual (@truita)
2194 * kkoang (@kkoang)
2195 * Manuel Mendez (@mmlb)
2196 * Marshall Bowers (@maxdeviant)
2197 * Martin von Zweigbergk (@martinvonz)
2198 * Mateus Auler (@mateusauler)
2199 * Michael Pratt (@prattmic)
2200 * Nicole Patricia Mazzuca (@strega-nil)
2201 * Philip Metzger (@PhilipMetzger)
2202 * Scott Taylor (@scott2000)
2203 * T6 (@tjjfvi)
2204 * Vincent Ging Ho Yim (@cenviity)
2205 * Winter (@winterqt)
2206 * Yuya Nishihara (@yuja)
2207
2208 ## [0.29.0] - 2025-05-07
2209
2210 ### Release highlights
2211
2212 * Experimental support for transferring the change ID to/from Git remotes behind configuration
2213 setting `git.write-change-id-header`. If this is enabled, the change ID will be stored in the Git
2214 commit itself (in a commit header called `change-id`), which means it will be transferred by
2215 regular `git push` etc. This is an evolving feature that currently defaults to "false". This
2216 default will likely change in the future as we gain confidence with forge support and user
2217 expectations.
2218
2219 ### Breaking changes
2220
2221 * `jj git push -c`/`--change` no longer moves existing local bookmarks.
2222
2223 * The `editor-*.jjdescription` files passed to your editor by e.g. `jj describe`
2224 are now written to your system's temporary directory instead of `.jj/repo/`.
2225
2226 ### Deprecations
2227
2228 * `git.subprocess = false` has been deprecated, and the old `libgit2`
2229 code path for fetches and pushes will be removed entirely in 0.30.
2230 Please report any remaining issues you have with the Git
2231 subprocessing path.
2232
2233 * `ui.default-description` has been deprecated, and will be migrated to
2234 `template-aliases.default_commit_description`. Please also consider using
2235 [`templates.draft_commit_description`](docs/config.md#default-description),
2236 and/or [`templates.commit_trailers`](docs/config.md#commit-trailers).
2237
2238 * On macOS, config.toml files in `~/Library/Application Support/jj` are
2239 deprecated; one should instead use `$XDG_CONFIG_HOME/jj`
2240 (defaults to `~/.config/jj`)
2241
2242 ### New features
2243
2244 * Color-words diff has gained [an option to compare conflict pairs without
2245 materializing](docs/config.md#color-words-diff-options).
2246
2247 * `jj show` patches can now be suppressed with `--no-patch`.
2248
2249 * Added `ui.bookmark-list-sort-keys` setting to configure default sort keys for the
2250 `jj bookmark list` command.
2251
2252 * New `signed` revset function to filter for cryptographically signed commits.
2253
2254 * `jj describe`, `jj commit`, `jj new`, `jj squash` and `jj split` add the
2255 commit trailers, configured in the `commit_trailers` template, to the commit
2256 description. Use cases include DCO Sign Off and Gerrit Change Id.
2257
2258 * Added `duplicate_description` template, which allows [customizing the descriptions
2259 of the commits `jj duplicate` creates](docs/config.md#duplicate-commit-description).
2260
2261 * `jj absorb` can now squash a deleted file if it was added by one of the
2262 destination revisions.
2263
2264 * Added `ui.streampager.show-ruler` setting to configure whether the ruler should be
2265 shown when the builtin pager starts up.
2266
2267 * `jj git fetch` now warns instead of erroring for unknown `git.fetch` remotes
2268 if other remotes are available.
2269
2270 * Commit objects in templates now have `trailers() -> List<Trailer>`, the Trailer
2271 objects have `key() -> String` and `value() -> String`.
2272
2273 * `jj config edit` will now roll back to previous version if a syntax error has been introduced in the new config.
2274
2275 * When using dynamic command-line completion, revision names will be completed
2276 in more complex expressions. For example, typing
2277 `jj log -r first-bookmark..sec` and then pressing Tab could complete the
2278 expression to `first-bookmark..second-bookmark`.
2279
2280 ### Fixed bugs
2281
2282 * Fixed crash on change-delete conflict resolution.
2283 [#6250](https://github.com/jj-vcs/jj/issues/6250)
2284
2285 * The builtin diff editor now tries to preserve unresolved conflicts.
2286 [#4963](https://github.com/jj-vcs/jj/issues/4963)
2287
2288 * Fixed bash and zsh shell completion when completing aliases of multiple arguments.
2289 [#5377](https://github.com/jj-vcs/jj/issues/5377)
2290
2291 ### Packaging changes
2292
2293 * Jujutsu now uses
2294 [`zlib-rs`](https://github.com/trifectatechfoundation/zlib-rs), a
2295 fast compression library written in Rust. Packagers should remove any
2296 dependency on CMake and drop the `packaging` Cargo feature.
2297
2298 ### Contributors
2299
2300 Thanks to the people who made this release happen!
2301
2302 * Aleksey Kuznetsov (@zummenix)
2303 * Austin Seipp (@thoughtpolice)
2304 * Benjamin Brittain (@benbrittain)
2305 * Benjamin Tan (@bnjmnt4n)
2306 * Caleb White (@calebdw)
2307 * Daniel Luz (@mernen)
2308 * Emily (@emilazy)
2309 * Emily (@neongreen)
2310 * Gaëtan Lehmann (@glehmann)
2311 * George Christou (@gechr)
2312 * Ilya Grigoriev (@ilyagr)
2313 * Jacob Hayes (@JacobHayes)
2314 * Jonas Greitemann (@jgreitemann)
2315 * Josh Steadmon (@steadmon)
2316 * Martin von Zweigbergk (@martinvonz)
2317 * Mateus Auler (@mateusauler)
2318 * Nicole Patricia Mazzuca (@strega-nil)
2319 * Nils Koch (@nilskch)
2320 * Philip Metzger (@PhilipMetzger)
2321 * Remo Senekowitsch (@senekor)
2322 * Sam (@Samasaur1)
2323 * Steve Fink (@hotsphink)
2324 * Théo Daron (@tdaron)
2325 * TimerErTim (@TimerErTim)
2326 * Vincent Ging Ho Yim (@cenviity)
2327 * Winter (@winterqt)
2328 * Yuya Nishihara (@yuja)
2329
2330 ## [0.28.2] - 2025-04-07
2331
2332 ### Fixed bugs
2333
2334 * Fixed problem that old commits could be re-imported from Git.
2335 https://github.com/GitoxideLabs/gitoxide/issues/1928
2336
2337 ## [0.28.1] - 2025-04-04
2338
2339 ### Security fixes
2340
2341 * Fixed SHA-1 collision attacks not being detected.
2342 ([GHSA-794x-2rpg-rfgr](https://github.com/jj-vcs/jj/security/advisories/GHSA-794x-2rpg-rfgr))
2343
2344 ### Fixed bugs
2345
2346 * Resolved some potential build issues for packagers.
2347 [#6232](https://github.com/jj-vcs/jj/pull/6232)
2348
2349 * Fix a bug with `:ours` and `:theirs` merge tools involving conflicted trees
2350 with more than two sides. [#6227](https://github.com/jj-vcs/jj/pull/6227)
2351
2352 ### Contributors
2353
2354 Thanks to the people who made this release happen!
2355
2356 * Emily (@emilazy)
2357 * Ilya Grigoriev (@ilyagr)
2358 * Nicole Patricia Mazzuca (@strega-nil)
2359 * Scott Taylor (@scott2000)
2360 * Yuya Nishihara (@yuja)
2361
2362 ## [0.28.0] - 2025-04-02
2363
2364 ### Release highlights
2365
2366 * jj's configuration can now be split into multiple files more easily.
2367
2368 * `jj resolve` now accepts built-in tools `:ours` and `:theirs`.
2369
2370 * In colocated repos, newly-created files will now appear in `git diff`.
2371
2372 * A long-standing bug relating to empty files in the built-in diff editor was
2373 fixed. [#3702](https://github.com/jj-vcs/jj/issues/3702)
2374
2375 ### Breaking changes
2376
2377 * The minimum supported Rust version (MSRV) is now 1.84.0.
2378
2379 * The `git.push-branch-prefix` config has been removed in favor of
2380 `git.push-bookmark-prefix`.
2381
2382 * `jj abandon` no longer supports `--summary` to suppress the list of abandoned
2383 commits. The list won't show more than 10 commits to not clutter the console.
2384
2385 * `jj unsquash` has been removed in favor of `jj squash` and
2386 `jj diffedit --restore-descendants`.
2387
2388 * The `jj untrack` subcommand has been removed in favor of `jj file untrack`.
2389
2390 * The following deprecated revset functions have been removed:
2391 - `branches()`, `remote_branches()`, `tracked_remote_branches()`, and
2392 `untracked_remote_branches()`, which were renamed to "bookmarks".
2393 - `file()` and `conflict()`, which were renamed to plural forms.
2394 - `files(x, y, ..)` with multiple patterns. Use `files(x|y|..)` instead.
2395
2396 * The following deprecated template functions have been removed:
2397 - `branches()`, `local_branches()`, and `remote_branches()`, which were
2398 renamed to "bookmarks".
2399
2400 * The flags `--all` and `--tracked` on `jj git push` by themself do not cause
2401 deleted bookmarks to be pushed anymore, as an additional safety measure. They
2402 can now be combined with `--deleted` instead.
2403
2404 ### Deprecations
2405
2406 * `core.watchman.register_snapshot_trigger` has been renamed to `core.watchman.register-snapshot-trigger` for consistency with other configuration options.
2407
2408 * `jj backout` is deprecated in favor of `jj revert`.
2409
2410 ### New features
2411
2412 * `jj sign` can now sign with PKCS#12 certificates through the `gpgsm` backend.
2413
2414 * `jj sign` will automatically use the gpg key associated with the author's email
2415 in the absence of a `signing.key` configuration.
2416
2417 * Multiple user configs are now supported and are loaded in the following precedence order:
2418 - `$HOME/.jjconfig.toml`
2419 - `$XDG_CONFIG_HOME/jj/config.toml`
2420 - `$XDG_CONFIG_HOME/jj/conf.d/*.toml`
2421
2422 * The `JJ_CONFIG` environment variable can now contain multiple paths separated
2423 by a colon (or semicolon on Windows).
2424
2425 * The command `jj config list` now supports showing the origin of each variable
2426 via the `builtin_config_list_detailed` template.
2427
2428 * `jj config {edit,set,unset}` now prompt when multiple config files are found.
2429
2430 * `jj diff -r` now allows multiple revisions (as long as there are no gaps in
2431 the revset), such as `jj diff -r 'mutable()'`.
2432
2433 * `jj git push` now accepts a `--named NAME=REVISION` argument to create a named
2434 bookmark and immediately push it.
2435
2436 * The 'how to resolve conflicts' hint that is shown when conflicts appear can
2437 be hidden by setting `hints.resolving-conflicts = false`.
2438
2439 * `jj op diff` and `jj op log --op-diff` now show changes to which commits
2440 correspond to working copies.
2441
2442 * `jj op log -d` is now an alias for `jj op log --op-diff`.
2443
2444 * `jj bookmark move --to/--from` can now be abbreviated to `jj bookmark move -t/-f`
2445
2446 * `jj bookmark list` now supports `--sort` option. Similar to `git branch --sort`.
2447 See `jj bookmark list --help` for more details.
2448
2449 * A new command `jj revert` is added, which is similar to `jj backout` but
2450 adds the `--destination`, `--insert-after`, and `--insert-before` options to
2451 customize the location of reverted commits.
2452
2453 * A new command `jj git root` is added, which prints the location of the Git
2454 directory of a repository using the Git backend.
2455
2456 * In colocated repos, any files that jj considers added in the working copy will
2457 now show up in `git diff` (as if you had run `git add --intent-to-add` on
2458 them).
2459
2460 * Reversing colors is now supported. For example, to highlight words by
2461 reversing colors rather than underlining, you can set
2462 `colors."diff token"={ underline = false, reverse = true }` in your config.
2463
2464 * Added `revsets.log-graph-prioritize`, which can be used to configure
2465 which branch in the `jj log` graph is displayed on the left instead of `@`
2466 (e.g. `coalesce(description("megamerge\n"), trunk())`)
2467
2468 * `jj resolve` now accepts new built-in merge tools `:ours` and `:theirs`.
2469 These merge tools accept side #1 and side #2 of the conflict respectively.
2470
2471 ### Fixed bugs
2472
2473 * `jj log -p --stat` now shows diff stats as well as the default color-words/git
2474 diff output. [#5986](https://github.com/jj-vcs/jj/issues/5986)
2475
2476 * The built-in diff editor now correctly handles deleted files.
2477 [#3702](https://github.com/jj-vcs/jj/issues/3702)
2478
2479 * The built-in diff editor now correctly retains the executable bit on newly
2480 added files when splitting. [#3846](https://github.com/jj-vcs/jj/issues/3846)
2481
2482 * `jj config set`/`--config` value parsing rule is relaxed in a way that
2483 unquoted apostrophes are allowed.
2484 [#5748](https://github.com/jj-vcs/jj/issues/5748)
2485
2486 * `jj fix` could previously create new conflicts when a descendant of a fixed
2487 revision was already correctly formatted.
2488
2489 ### Contributors
2490
2491 Thanks to the people who made this release happen!
2492
2493 * Aleksey Kuznetsov (@zummenix)
2494 * Anton Älgmyr (@algmyr)
2495 * Austin Seipp (@thoughtpolice)
2496 * Baltasar Dinis (@bsdinis)
2497 * Benjamin Tan (@bnjmnt4n)
2498 * Brandon Hall (@tenkabuto)
2499 * Caleb White (@calebdw)
2500 * Daniel Luz (@mernen)
2501 * David Rieber (@drieber)
2502 * demize (@demize)
2503 * Emily (@emilazy)
2504 * Evan Mesterhazy (@emesterhazy)
2505 * Fedor Sheremetyev (@sheremetyev)
2506 * George Christou (@gechr)
2507 * Ilya Grigoriev (@ilyagr)
2508 * Jakob Hellermann (@jakobhellermann)
2509 * Jo Liss (@joliss)
2510 * Joachim Desroches (@jedesroches)
2511 * Johannes Altmanninger (@krobelus)
2512 * Jonathan Gilchrist (@jgilchrist)
2513 * Kenyon Ralph (@kenyon)
2514 * Lucas Garron (@lgarron)
2515 * Martin von Zweigbergk (@martinvonz)
2516 * Nick Pupko (@npupko)
2517 * Philip Metzger (@PhilipMetzger)
2518 * Raphael Borun Das Gupta (@das-g)
2519 * Remo Senekowitsch (@senekor)
2520 * Robin Stocker (@robinst)
2521 * Scott Taylor (@scott2000)
2522 * Siva Mahadevan (@svmhdvn)
2523 * Vincent Ging Ho Yim (@cenviity)
2524 * Yuya Nishihara (@yuja)
2525
2526 ## [0.27.0] - 2025-03-05
2527
2528 ### Release highlights
2529
2530 * `git.subprocess` is now enabled by default, improving compatibility with Git
2531 fetches and pushes by spawning an external `git` process. Users can opt out
2532 of this by setting `git.subprocess = false`, but this will likely be removed
2533 in a future release. Please report any issues you run into.
2534
2535 ### Breaking changes
2536
2537 * Bookmark name to be created/updated is now parsed as [a revset
2538 symbol](docs/revsets.md#symbols). Quotation may be needed in addition to shell
2539 quotes. Example: `jj bookmark create -r@- "'name with space'"`
2540
2541 * `jj bookmark create`, `jj bookmark set` and `jj bookmark move` onto a hidden
2542 commit make it visible.
2543
2544 * `jj bookmark forget` now untracks any corresponding remote bookmarks instead
2545 of forgetting them, since forgetting a remote bookmark can be unintuitive.
2546 The old behavior is still available with the new `--include-remotes` flag.
2547
2548 * `jj fix` now always sets the working directory of invoked tools to be the
2549 workspace root, instead of the working directory of the `jj fix`.
2550
2551 * The `ui.allow-filesets` configuration option has been removed.
2552 [The "fileset" language](docs/filesets.md) has been enabled by default since v0.20.
2553
2554 * `templates.annotate_commit_summary` is renamed to `templates.file_annotate`,
2555 and now has an implicit `self` parameter of type `AnnotationLine`, instead of
2556 `Commit`. All methods on `Commit` can be accessed with `commit.method()`, or
2557 `self.commit().method()`.
2558
2559 ### Deprecations
2560
2561 * This release takes the first steps to make target revision required in
2562 `bookmark create`, `bookmark move` and `bookmark set`. Those commands will display
2563 a warning if the user does not specify target revision explicitly. In the near
2564 future those commands will fail if target revision is not specified.
2565
2566 * The `signing.sign-all` config option has been deprecated in favor of
2567 `signing.behavior`. The new option accepts `drop` (never sign), `keep` (preserve
2568 existing signatures), `own` (sign own commits), or `force` (sign all commits).
2569 Existing `signing.sign-all = true` translates to `signing.behavior = "own"`, and
2570 `false` translates to `"keep"`. Invalid configuration is now an error.
2571
2572 ### New features
2573
2574 * The new `jj sign` and `jj unsign` commands allow for signing/unsigning commits.
2575 `jj sign` supports configuring the default revset through `revsets.sign` when
2576 no `--revisions` arguments are provided.
2577
2578 * `jj git fetch` now supports [string pattern syntax](docs/revsets.md#string-patterns)
2579 on `--remote` option and `git.fetch` configuration.
2580
2581 * Template functions `truncate_start()` and `truncate_end()` gained an optional
2582 `ellipsis` parameter; passing this prepends or appends the ellipsis to the
2583 content if it is truncated to fit the maximum width.
2584
2585 * Templates now support `stringify(x)` function and string method
2586 `.escape_json()`. The latter serializes the string in JSON format. It is
2587 useful for making machine-readable templates by escaping problematic
2588 characters like `\n`.
2589
2590 * Templates now support `trim()`, `trim_start()` and `trim_end()` methods
2591 which remove whitespace from the start and end of a `String` type.
2592
2593 * The description of commits backed out by `jj backout` can now be configured
2594 using `templates.backout_description`.
2595
2596 * New `AnnotationLine` templater type. Used in `templates.file_annotate`.
2597 Provides `self.commit()`, `.content()`, `.line_number()`, and
2598 `.first_line_in_hunk()`.
2599
2600 * Templates now have `format_short_operation_id(id)` function for users to
2601 customize the default operation id representation.
2602
2603 * The `jj init`/`jj revert` stubs that print errors can now be overridden with
2604 aliases. All of `jj clone/init/revert` add a hint to a generic error.
2605
2606 * Help text is now colored (when stdout is a terminal).
2607
2608 * Commands that used to suggest `--ignore-immutable` now print the number of
2609 immutable commits that would be rewritten if used and a link to the docs.
2610
2611 * `jj undo` now shows a hint when undoing an undo operation that the user may
2612 be looking for `jj op restore` instead.
2613
2614 ### Fixed bugs
2615
2616 * `jj status` now shows untracked files under untracked directories.
2617 [#5389](https://github.com/jj-vcs/jj/issues/5389)
2618
2619 * Added workaround for the bug that untracked files are ignored when watchman is
2620 enabled. [#5728](https://github.com/jj-vcs/jj/issues/5728)
2621
2622 * The `signing.backends.ssh.allowed-signers` configuration option will now
2623 expand `~/` to `$HOME/`.
2624 [#5626](https://github.com/jj-vcs/jj/pull/5626)
2625
2626 * `config-schema.json` now allows arrays of strings for the settings `ui.editor`
2627 and `ui.diff.tool`.
2628
2629 * `config-schema.json` now allows an array of strings or nested table for the
2630 `ui.pager` setting.
2631
2632 ### Contributors
2633
2634 Thanks to the people who made this release happen!
2635
2636 * Alain Leufroy (@aleufroy)
2637 * Aleksey Kuznetsov (@zummenix)
2638 * Alexander Mikhailov (@AM5800)
2639 * Andrew Gilbert (@andyg0808)
2640 * Antoine Martin (@alarsyo)
2641 * Anton Bulakh (@necauqua)
2642 * Austin Seipp (@thoughtpolice)
2643 * Baltasar Dinis (@bsdinis)
2644 * Benjamin Tan (@bnjmnt4n)
2645 * Bryce Berger (@bryceberger)
2646 * Burak Varlı (@unexge)
2647 * David Rieber (@drieber)
2648 * Emily (@emilazy)
2649 * Evan Mesterhazy (@emesterhazy)
2650 * George Christou (@gechr)
2651 * HKalbasi (@HKalbasi)
2652 * Ilya Grigoriev (@ilyagr)
2653 * Jacob Hayes (@JacobHayes)
2654 * Jonathan Frere (@MrJohz)
2655 * Jonathan Tan (@jonathantanmy)
2656 * Josh Steadmon (@steadmon)
2657 * maan2003 (@maan2003)
2658 * Martin von Zweigbergk (@martinvonz)
2659 * Matthew Davidson (@KingMob)
2660 * Philip Metzger (@PhilipMetzger)
2661 * Philipp Albrecht (@pylbrecht)
2662 * Roman Timushev (@rtimush)
2663 * Samuel Tardieu (@samueltardieu)
2664 * Scott Taylor (@scott2000)
2665 * Stephan Hügel (@urschrei)
2666 * Vincent Ging Ho Yim (@cenviity)
2667 * Yuya Nishihara (@yuja)
2668
2669 ## [0.26.0] - 2025-02-05
2670
2671 ### Release highlights
2672
2673 * Improved Git push/fetch compatibility by spawning an external `git` process.
2674 This can be enabled by the `git.subprocess=true` config knob, and will be the
2675 default in a future release.
2676
2677 * `jj log` can now show cryptographic commit signatures. The output can be
2678 controlled by the `ui.show-cryptographic-signatures=true` config knob.
2679
2680 ### Breaking changes
2681
2682 * `jj abandon` now deletes bookmarks pointing to the revisions to be abandoned.
2683 Use `--retain-bookmarks` to move bookmarks backwards. If deleted bookmarks
2684 were tracking remote bookmarks, the associated bookmarks (or branches) will be
2685 deleted from the remote on `jj git push --all`.
2686 [#3505](https://github.com/jj-vcs/jj/issues/3505)
2687
2688 * `jj init --git` and `jj init --git-repo` have been removed. They were
2689 deprecated in early 2024. Use `jj git init` instead.
2690
2691 * The following deprecated commands have been removed:
2692 - `jj cat` is replaced by `jj file show`.
2693 - `jj chmod` is replaced by `jj file chmod`.
2694 - `jj files` is replaced by `jj file list`.
2695
2696 * The deprecated `-l` short alias for `--limit` in `jj log`, `jj op log`
2697 and `jj obslog` has been removed. The `-n` short alias can be used instead.
2698
2699 * The deprecated `--siblings` options for `jj split` has been removed.
2700 `jj split --parallel` can be used instead.
2701
2702 * The deprecated `fix.tool-command` config option has been removed.
2703
2704 * In colocated repos, the Git index now contains the changes from all parents
2705 of the working copy instead of just the first parent (`HEAD`). 2-sided
2706 conflicts from the merged parents are now added to the Git index as conflicts
2707 as well.
2708
2709 * The following change introduced in 0.25.0 is reverted:
2710 - `jj config list` now prints inline tables `{ key = value, .. }` literally.
2711 Inner items of inline tables are no longer merged across configuration
2712 files.
2713
2714 * `jj resolve` will now attempt to resolve all conflicted files instead of
2715 resolving the first conflicted file. To resolve a single file, pass a file
2716 path to `jj resolve`.
2717
2718 * `jj util mangen` is replaced with `jj util install-man-pages`, which can
2719 install man pages for all `jj` subcommands to a given path.
2720
2721 * In `jj config list` template, `value` is now typed as `ConfigValue`, not as
2722 `String` serialized in TOML syntax.
2723
2724 * `jj git remote add`/`set-url` now converts relative Git remote path to
2725 absolute path.
2726
2727 * `jj log`/`op log` now applies `-n`/`--limit` *before* the items are reversed.
2728 Rationale: It's more useful to see the N most recent commits/operations, and
2729 is more performant. The old behavior can be achieved by `jj log .. | head`.
2730 [#5403](https://github.com/jj-vcs/jj/issues/5403)
2731
2732 * Upgraded `scm-record` from v0.4.0 to v0.5.0. See release notes at
2733 <https://github.com/arxanas/scm-record/releases/tag/v0.5.0>.
2734
2735 * The builtin pager is switched to
2736 [streampager](https://github.com/markbt/streampager/). It can handle large
2737 inputs better and can be configured.
2738
2739 * Conflicts materialized in the working copy before `jj 0.19.0` may no longer
2740 be parsed correctly. If you are using version 0.18.0 or earlier, check out a
2741 non-conflicted commit before upgrading to prevent issues.
2742
2743 ### Deprecations
2744
2745 ### New features
2746
2747 * `jj git {push,clone,fetch}` can now spawn an external `git` subprocess, via
2748 the `git.subprocess = true` config knob. This provides an alternative that,
2749 when turned on, fixes SSH bugs when interacting with Git remotes due to
2750 `libgit2`s limitations [#4979](https://github.com/jj-vcs/jj/issues/4979).
2751
2752 * `jj describe` now accepts `--edit`.
2753
2754 * `jj evolog` and `jj op log` now accept `--reversed`.
2755
2756 * `jj restore` now supports `-i`/`--interactive` selection.
2757
2758 * `jj file list` now supports templating.
2759
2760 * There is a new `builtin_op_log_oneline` template alias you can pass to `jj op
2761 log -T` for a more compact output. You can use `format_operation_oneline` and
2762 `format_snapshot_operation_oneline` to customize parts of it.
2763
2764 * New template function `config(name)` to access to configuration variable from
2765 template.
2766
2767 * New template function `pad_centered()` to center content within a minimum
2768 width.
2769
2770 * Templater now supports `list.filter(|x| ..)` method.
2771
2772 * The `diff` commit template keyword now supports custom formatting via
2773 `diff.files()`. For example, `diff.files().map(|e| e.path().display())` prints
2774 changed file paths.
2775
2776 * The `diff.stat()` template method now provides methods to get summary values.
2777
2778 * `jj log` can now show cryptographic commit signatures. The output can be
2779 controlled by the `ui.show-cryptographic-signatures=true` config knob. The
2780 signature template can be customized using
2781 `format_detailed_cryptographic_signature(signature)` and
2782 `format_short_cryptographic_signature(signature)`.
2783
2784 * New `git.sign-on-push` config option to automatically sign commits which are
2785 being pushed to a Git remote.
2786
2787 * New `git.push-new-bookmarks` config option to push new bookmarks without
2788 `--allow-new`.
2789
2790 * `jj status` now shows untracked files when they reside directly under a
2791 tracked directory. There's still an issue that files under untracked
2792 directories aren't listed. [#5389](https://github.com/jj-vcs/jj/issues/5389)
2793
2794 * New `merge-tools.<TOOL>.diff-expected-exit-codes` config option to suppress
2795 warnings from tools exiting with non-zero exit codes.
2796
2797 * New `fix.tools.TOOL.enabled` config option to enable/disable tools. This is
2798 useful for defining disabled tools in user configuration that can be enabled
2799 in individual repositories with one config setting.
2800
2801 * Added `--into` flag to `jj restore`, similarly to `jj squash` and `jj
2802 absorb`. It is equivalent to `--to`, but `--into` is the recommended name.
2803
2804 * Italic text is now supported. You can set e.g. `colors.error = { fg = "red",
2805 italic = true }` in your config.
2806
2807 * New `author_name`/`author_email`/`committer_name`/`committer_email(pattern)`
2808 revset functions to match either name or email field explicitly.
2809
2810 * New `subject(pattern)` revset function that matches first line of commit
2811 descriptions.
2812
2813 * Conditional configuration now supports `--when.commands` to change
2814 configuration based on subcommand.
2815
2816 * The Jujutsu documentation site now publishes a schema for the official
2817 configuration file, which can be integrated into your editor for autocomplete,
2818 inline errors, and more.
2819 Please [see the documentation](docs/config.md#json-schema-support) for more
2820 on this.
2821
2822 ### Fixed bugs
2823
2824 * `jj git fetch` with multiple remotes will now fetch from all remotes before
2825 importing refs into the jj repo. This fixes a race condition where the
2826 treatment of a commit that is found in multiple fetch remotes depended on the
2827 order the remotes were specified.
2828
2829 * Fixed diff selection by external tools with `jj split`/`commit -i FILESETS`.
2830 [#5252](https://github.com/jj-vcs/jj/issues/5252)
2831
2832 * Conditional configuration now applies when initializing new repository.
2833 [#5144](https://github.com/jj-vcs/jj/issues/5144)
2834
2835 * `[diff.<format>]` configuration now applies to `.diff().<format>()` commit
2836 template methods.
2837
2838 * Conflicts at the end of files which don't end with a newline character are
2839 now materialized in a way that can be parsed correctly.
2840 [#3968](https://github.com/jj-vcs/jj/issues/3968)
2841
2842 * Bookmark and remote names written by `jj git clone` to
2843 `revset-aliases.'trunk()'` are now escaped if necessary.
2844 [#5359](https://github.com/jj-vcs/jj/issues/5359)
2845
2846 ### Contributors
2847
2848 Thanks to the people who made this release happen!
2849
2850 * Angel Ezquerra (@AngelEzquerra)
2851 * Antoine Martin (@alarsyo)
2852 * Anton Bulakh (@necauqua)
2853 * Austin Seipp (@thoughtpolice)
2854 * Baltasar Dinis (@bsdinis)
2855 * Benjamin Tan (@bnjmnt4n)
2856 * blinry (@blinry)
2857 * Bryce Berger (@bryceberger)
2858 * Charlie-83 (@Charlie-83)
2859 * Christian Stoitner (@cstoitner)
2860 * Evan Martin (@evmar)
2861 * George Christou (@gechr)
2862 * Ilya Grigoriev (@ilyagr)
2863 * Jakob Hellermann (@jakobhellermann)
2864 * JDSeiler (@JDSeiler)
2865 * Jonathan Frere (@MrJohz)
2866 * Jonathan Gilchrist (@jgilchrist)
2867 * Josh Steadmon (@steadmon)
2868 * Martin von Zweigbergk (@martinvonz)
2869 * Matt Kulukundis (@fowles)
2870 * Ollivier Robert (@keltia)
2871 * Philip Metzger (@PhilipMetzger)
2872 * Philipp Albrecht (@pylbrecht)
2873 * Robert Jackson (@rwjblue)
2874 * Samuel Tardieu (@samueltardieu)
2875 * Scott Taylor (@scott2000)
2876 * Stephen Jennings (@jennings)
2877 * Valentin Gatien-Baron (@v-gb)
2878 * Vincent Ging Ho Yim (@cenviity)
2879 * Waleed Khan (@arxanas)
2880 * Yuya Nishihara (@yuja)
2881
2882 ## [0.25.0] - 2025-01-01
2883
2884 ### Release highlights
2885
2886 It's the holidays, and this release was overall pretty quiet, without many major
2887 changes. Two select improvements:
2888
2889 * Improvements to configuration management, including support for [conditional
2890 variables](docs/config.md#conditional-variables) in config files.
2891
2892 * Large files in the working copy will no longer cause commands to fail; instead
2893 the large files will remain intact but untracked in the working copy.
2894
2895 ### Breaking changes
2896
2897 * Configuration variables are no longer "stringly" typed. For example, `true` is
2898 not converted to a string `"true"`, and vice versa.
2899
2900 * The following configuration variables are now parsed strictly:
2901 `colors.<labels>`, `git.abandon-unreachable-commits`,
2902 `git.auto-local-bookmark`, `git.push-bookmark-prefix`, `revsets.log`,
2903 `revsets.short-prefixes`, `signing.backend`, `operation.hostname`,
2904 `operation.username`, `ui.allow-init-native`, `ui.color`,
2905 `ui.default-description`, `ui.progress-indicator`, `ui.quiet`, `user.email`,
2906 `user.name`
2907
2908 * `jj config list` now prints inline tables `{ key = value, .. }` literally.
2909 Inner items of inline tables are no longer merged across configuration files.
2910 See [the table syntax
2911 documentation](docs/config.md#dotted-style-and-headings) for
2912 details.
2913
2914 * `jj config edit --user` now opens a file even if `$JJ_CONFIG` points to a
2915 directory. If there are multiple config files, the command will fail.
2916
2917 * `jj config set` no longer accepts a bare string value that looks like a TOML
2918 expression. For example, `jj config set NAME '[foo]'` must be quoted as `jj
2919 config set NAME '"[foo]"'`.
2920
2921 * The deprecated `[alias]` config section is no longer respected. Move command
2922 aliases to the `[aliases]` section.
2923
2924 * `jj absorb` now abandons the source commit if it becomes empty and has no
2925 description.
2926
2927 ### Deprecations
2928
2929 * `--config-toml=TOML` is deprecated in favor of `--config=NAME=VALUE` and
2930 `--config-file=PATH`.
2931
2932 * The `Signature.username()` template method is deprecated for
2933 `Signature.email().local()`.
2934
2935 ### New features
2936
2937 * `jj` command no longer fails due to new working-copy files larger than the
2938 `snapshot.max-new-file-size` config option. It will print a warning and large
2939 files will be left untracked.
2940
2941 * Configuration files now support [conditional
2942 variables](docs/config.md#conditional-variables).
2943
2944 * New command options `--config=NAME=VALUE` and `--config-file=PATH` to set
2945 string value without quoting and to load additional configuration from files.
2946
2947 * Templates now support the `>=`, `>`, `<=`, and `<` relational operators for
2948 `Integer` types.
2949
2950 * A new Email template type is added. `Signature.email()` now returns an Email
2951 template type instead of a String.
2952
2953 * Adds a new template alias `commit_timestamp(commit)` which defaults to the
2954 committer date.
2955
2956 * Conflict markers are now allowed to be longer than 7 characters, allowing
2957 conflicts to be materialized and parsed correctly in files which already
2958 contain lines that look like conflict markers.
2959
2960 * New `$marker_length` variable to allow merge tools to support longer conflict
2961 markers (equivalent to "%L" for Git merge drivers).
2962
2963 * `jj describe` now accepts a `JJ: ignore-rest` line that ignores everything
2964 below it, similar to a "scissor line" in git. When editing multiple commits,
2965 only ignore until the next `JJ: describe` line.
2966
2967 ### Fixed bugs
2968
2969 * The `$NO_COLOR` environment variable must now be non-empty to be respected.
2970
2971 * Fixed incompatible rendering of empty hunks in git/unified diffs.
2972 [#5049](https://github.com/jj-vcs/jj/issues/5049)
2973
2974 * Fixed performance of progress bar rendering when fetching from Git remote.
2975 [#5057](https://github.com/jj-vcs/jj/issues/5057)
2976
2977 * `jj config path --user` no longer creates new file at the default config path.
2978
2979 * On Windows, workspace paths (printed by `jj root`) no longer use UNC-style
2980 `\\?\` paths unless necessary.
2981
2982 * On Windows, `jj git clone` now converts local Git remote path to
2983 slash-separated path.
2984
2985 * `jj resolve` no longer removes the executable bit on resolved files when using
2986 an external merge tool.
2987
2988 ### Contributors
2989
2990 Thanks to the people who made this release happen!
2991
2992 * Alex Stefanov (@umnikos)
2993 * Anton Älgmyr (@algmyr)
2994 * Austin Seipp (@thoughtpolice)
2995 * Benjamin Tan (@bnjmnt4n)
2996 * Bryce Berger (@bryceberger)
2997 * Daniel Ploch (@torquestomp)
2998 * David Crespo (@david-crespo)
2999 * George Tsiamasiotis (@gtsiam)
3000 * Jochen Kupperschmidt (@homeworkprod)
3001 * Keane Nguyen (@keanemind)
3002 * Martin von Zweigbergk (@martinvonz)
3003 * Matt Kulukundis (@fowles)
3004 * Milo Moisson (@mrnossiom)
3005 * petricavalry (@petricavalry)
3006 * Philip Metzger (@PhilipMetzger)
3007 * Remo Senekowitsch (@senekor)
3008 * Scott Taylor (@scott2000)
3009 * Shane Sveller (@shanesveller)
3010 * Stephen Jennings (@jennings)
3011 * Tim Janik (@tim-janik)
3012 * Vamsi Avula (@avamsi)
3013 * Waleed Khan (@arxanas)
3014 * Yuya Nishihara (@yuja)
3015
3016 ## [0.24.0] - 2024-12-04
3017
3018 ### Release highlights
3019
3020 * New [`jj absorb`](https://jj-vcs.github.io/jj/latest/cli-reference/#jj-absorb) command automatically squashes changes from the current commit into relevant ancestor commits.
3021
3022 * Experimental dynamic shell completions have been added; see [the docs](https://jj-vcs.github.io/jj/latest/install-and-setup/#command-line-completion) for configuration.
3023
3024 * [`jj duplicate`](https://jj-vcs.github.io/jj/latest/cli-reference/#jj-duplicate) now accepts `--destination`/`--insert-before`/`--insert-after`.
3025
3026 * Some deprecated commands have been removed (`jj move`, `jj checkout`, `jj merge`).
3027
3028 ### Breaking changes
3029
3030 * `jj move` has been removed. It was deprecated in 0.16.0.
3031
3032 * `jj checkout` and the built-in alias `jj co` have been removed.
3033 It was deprecated in 0.14.0.
3034
3035 * `jj merge` has been removed. It was deprecated in 0.14.0.
3036
3037 * `jj git push` no longer pushes new bookmarks by default. Use `--allow-new` to
3038 bypass this restriction.
3039
3040 * Lines prefixed with "JJ:" in commit descriptions and in sparse patterns (from
3041 `jj sparse edit`) are now stripped even if they are not immediately followed
3042 by a space. [#5004](https://github.com/jj-vcs/jj/issues/5004)
3043
3044 ### Deprecations
3045
3046 ### New features
3047
3048 * Templates now support the `==` and `!=` logical operators for `Boolean`,
3049 `Integer`, and `String` types.
3050
3051 * New command `jj absorb` that moves changes to stack of mutable revisions.
3052
3053 * New command `jj util exec` that can be used for arbitrary aliases.
3054
3055 * `jj rebase -b` can now be used with the `--insert-after` and `--insert-before`
3056 options, like `jj rebase -r` and `jj rebase -s`.
3057
3058 * A preview of improved shell completions was added. Please refer to the
3059 [documentation](https://jj-vcs.github.io/jj/latest/install-and-setup/#command-line-completion)
3060 to activate them. They additionally complete context-dependent, dynamic values
3061 like bookmarks, aliases, revisions, operations and files.
3062
3063 * Added the config setting `snapshot.auto-update-stale` for automatically
3064 running `jj workspace update-stale` when applicable.
3065
3066 * `jj duplicate` now accepts `--destination`, `--insert-after` and
3067 `--insert-before` options to customize the location of the duplicated
3068 revisions.
3069
3070 * `jj log` now displays the working-copy branch first.
3071
3072 * New `fork_point()` revset function can be used to obtain the fork point
3073 of multiple commits.
3074
3075 * The `tags()` revset function now takes an optional `pattern` argument,
3076 mirroring that of `bookmarks()`.
3077
3078 * Several commands now support `-f/-t` shorthands for `--from/--to`:
3079 - `diff`
3080 - `diffedit`
3081 - `interdiff`
3082 - `op diff`
3083 - `restore`
3084
3085 * New `ui.conflict-marker-style` config option to change how conflicts are
3086 materialized in the working copy. The default option ("diff") renders
3087 conflicts as a snapshot with a list of diffs to apply to the snapshot.
3088 The new "snapshot" option renders conflicts as a series of snapshots, showing
3089 each side and base of the conflict. The new "git" option replicates Git's
3090 "diff3" conflict style, meaning it is more likely to work with external tools,
3091 but it doesn't support conflicts with more than 2 sides.
3092
3093 * New `merge-tools.<TOOL>.conflict-marker-style` config option to override the
3094 conflict marker style used for a specific merge tool.
3095
3096 * New `merge-tools.<TOOL>.merge-conflict-exit-codes` config option to allow a
3097 merge tool to exit with a non-zero code to indicate that not all conflicts
3098 were resolved.
3099
3100 * `jj simplify-parents` now supports configuring the default revset when no
3101 `--source` or `--revisions` arguments are provided with the
3102 `revsets.simplify-parents` config.
3103
3104 ### Fixed bugs
3105
3106 * `jj config unset <TABLE-NAME>` no longer removes a table (such as `[ui]`.)
3107
3108 ### Contributors
3109
3110 Thanks to the people who made this release happen!
3111
3112 * Austin Seipp (@thoughtpolice)
3113 * Benjamin Tan (@bnjmnt4n)
3114 * Daniel Ploch (@torquestomp)
3115 * Emily (@neongreen)
3116 * Essien Ita Essien (@essiene)
3117 * Herman J. Radtke III (@hjr3)
3118 * Ilya Grigoriev (@ilyagr)
3119 * Joaquín Triñanes (@JoaquinTrinanes)
3120 * Lars Francke (@lfrancke)
3121 * Luke Randall (@lukerandall)
3122 * Martin von Zweigbergk (@martinvonz)
3123 * Nathanael Huffman (@nathanaelhuffman)
3124 * Philip Metzger (@PhilipMetzger)
3125 * Remo Senekowitsch (@senekor)
3126 * Robin Stocker (@robinst)
3127 * Scott Taylor (@scott2000)
3128 * Shane Sveller (@shanesveller)
3129 * Tim Janik (@tim-janik)
3130 * Yuya Nishihara (@yuja)
3131
3132 ## [0.23.0] - 2024-11-06
3133
3134 ### Security fixes
3135
3136 * Fixed path traversal by cloning/checking out crafted Git repository containing
3137 `..`, `.jj`, `.git` paths.
3138 ([GHSA-88h5-6w7m-5w56](https://github.com/jj-vcs/jj/security/advisories/GHSA-88h5-6w7m-5w56);CVE-2024-51990)
3139
3140 ### Breaking changes
3141
3142 * Revset function names can no longer start with a number.
3143
3144 * Evaluation error of `revsets.short-prefixes` configuration is now reported.
3145
3146 * The `HEAD@git` symbol no longer resolves to the Git HEAD revision. Use
3147 `git_head()` or `@-` revset expression instead. The `git_head` template
3148 keyword now returns a boolean.
3149
3150 * Help command doesn't work recursively anymore, i.e. `jj workspace help root`
3151 doesn't work anymore.
3152
3153 * The color label `op_log` from the `[colors]` config section now **only**
3154 applies to the op log and not to the other places operations are displayed. In
3155 almost all cases, if you configured `op_log` before, you should use the new
3156 `operation` label instead.
3157
3158 * Default operation log template now shows end times of operations instead of
3159 start times.
3160
3161 ### Deprecations
3162
3163 * `git.auto-local-bookmark` replaces `git.auto-local-branch`. The latter remains
3164 supported for now (at lower precedence than the former).
3165
3166 ### New features
3167
3168 * Added diff options to ignore whitespace when comparing lines. Whitespace
3169 changes are still highlighted.
3170
3171 * New command `jj simplify-parents` will remove redundant parent edges.
3172
3173 * `jj squash` now supports `-f/-t` shorthands for `--from/--[in]to`.
3174
3175 * Initial support for shallow Git repositories has been implemented. However,
3176 deepening the history of a shallow repository is not yet supported.
3177
3178 * `jj git clone` now accepts a `--depth <DEPTH>` option, which
3179 allows to clone the repository with a given depth.
3180
3181 * New command `jj file annotate` that annotates files line by line. This is similar
3182 in functionality to `git blame`. Invoke the command with `jj file annotate <file_path>`.
3183 The output can be customized via the `templates.annotate_commit_summary`
3184 config variable.
3185
3186 * `jj bookmark list` gained a `--remote REMOTE` option to display bookmarks
3187 belonging to a remote. This option can be combined with `--tracked` or
3188 `--conflicted`.
3189
3190 * New command `jj config unset` that unsets config values. For example,
3191 `jj config unset --user user.name`.
3192
3193 * `jj help` now has the flag `--keyword` (shorthand `-k`), which can give help
3194 for some keywords (e.g. `jj help -k revsets`). To see a list of the available
3195 keywords you can do `jj help --help`.
3196
3197 * New `at_operation(op, expr)` revset can be used in order to query revisions
3198 based on historical state.
3199
3200 * String literals in filesets, revsets and templates now support hex bytes
3201 (with `\e` as escape / shorthand for `\x1b`).
3202
3203 * New `coalesce(revsets...)` revset which returns commits in the first revset
3204 in the `revsets` list that does not evaluate to `none()`.
3205
3206 * New template function `raw_escape_sequence(...)` preserves escape sequences.
3207
3208 * Timestamp objects in templates now have `after(date) -> Boolean` and
3209 `before(date) -> Boolean` methods for comparing timestamps to other dates.
3210
3211 * New template functions `pad_start()`, `pad_end()`, `truncate_start()`, and
3212 `truncate_end()` are added.
3213
3214 * Add a new template alias `builtin_log_compact_full_description()`.
3215
3216 * Added the config settings `diff.color-words.context` and `diff.git.context` to
3217 control the default number of lines of context shown.
3218
3219 ### Fixed bugs
3220
3221 * Error on `trunk()` revset resolution is now handled gracefully.
3222 [#4616](https://github.com/jj-vcs/jj/issues/4616)
3223
3224 * Updated the built-in diff editor `scm-record` to version
3225 [0.4.0](https://github.com/arxanas/scm-record/releases/tag/v0.4.0), which
3226 includes multiple fixes.
3227
3228 ### Contributors
3229
3230 Thanks to the people who made this release happen!
3231
3232 * Alec Snyder (@allonsy)
3233 * Arthur Grillo (Grillo-0)
3234 * Austin Seipp (@thoughtpolice)
3235 * Benjamin Tan (@bnjmnt4n)
3236 * Dave Townsend (@Mossop)
3237 * Daniel Ploch (@torquestomp)
3238 * Emily (@neongreen)
3239 * Essien Ita Essien (@essiene)
3240 * Fedor Sheremetyev (@sheremetyev)
3241 * Ilya Grigoriev (@ilyagr)
3242 * Jakub Okoński (@farnoy)
3243 * Jcparkyn (@Jcparkyn)
3244 * Joaquín Triñanes (@JoaquinTrinanes)
3245 * Lukas Wirth (@Veykril)
3246 * Marco Neumann (@crepererum)
3247 * Martin von Zweigbergk (@martinvonz)
3248 * Matt Stark (@matts1)
3249 * Philip Metzger (@PhilipMetzger)
3250 * Philipp Albrecht (@pylbrecht)
3251 * Remo Senekowitsch (@senekor)
3252 * Richard Macklin (@rmacklin)
3253 * Robin Stocker (@robinst)
3254 * Samuel Tardieu (@samueltardieu)
3255 * Sora (@SoraTenshi)
3256 * Stephen Jennings (@jennings)
3257 * Theodore Ehrenborg (@TheodoreEhrenborg)
3258 * Vamsi Avula (@avamsi)
3259 * Vincent Ging Ho Yim (@cenviity)
3260 * Yuya Nishihara (@yuja)
3261
3262 ## [0.22.0] - 2024-10-02
3263
3264 ### Breaking changes
3265
3266 * Fixing [#4239](https://github.com/jj-vcs/jj/issues/4239) means the
3267 ordering of some messages have changed.
3268
3269 * Invalid `ui.graph.style` configuration is now an error.
3270
3271 * The builtin template `branch_list` has been renamed to `bookmark_list` as part
3272 of the `jj branch` deprecation.
3273
3274 ### Deprecations
3275
3276 * `jj branch` has been deprecated in favor of `jj bookmark`.
3277
3278 **Rationale:** Jujutsu's branches don't behave like Git branches, which a
3279 confused many newcomers, as they expected a similar behavior given the name.
3280 We've renamed them to "bookmarks" to match the actual behavior, as we think
3281 that describes them better, and they also behave similar to Mercurial's
3282 bookmarks.
3283
3284 * `jj obslog` is now called `jj evolution-log`/`jj evolog`. `jj obslog` remains
3285 as an alias.
3286
3287 * `jj unsquash` has been deprecated in favor of `jj squash` and
3288 `jj diffedit --restore-descendants`.
3289
3290 **Rationale:** `jj squash` can be used in interactive mode to pull
3291 changes from one commit to another, including from a parent commit
3292 to a child commit. For fine-grained dependent diffs, such as when
3293 the parent and the child commits must successively modify the same
3294 location in a file, `jj diffedit --restore-descendants` can be used
3295 to set the parent commit to the desired content without altering the
3296 content of the child commit.
3297
3298 * The `git.push-branch-prefix` config has been deprecated in favor of
3299 `git.push-bookmark-prefix`.
3300
3301 * `conflict()` and `file()` revsets have been renamed to `conflicts()` and `files()`
3302 respectively. The old names are still around and will be removed in a future
3303 release.
3304
3305 ### New features
3306
3307 * The new config option `snapshot.auto-track` lets you automatically track only
3308 the specified paths (all paths by default). Use the new `jj file track`
3309 command to manually tracks path that were not automatically tracked. There is
3310 no way to list untracked files yet. Use `git status` in a colocated workspace
3311 as a workaround.
3312 [#323](https://github.com/jj-vcs/jj/issues/323)
3313
3314 * `jj fix` now allows fixing unchanged files with the `--include-unchanged-files` flag. This
3315 can be used to more easily introduce automatic formatting changes in a new
3316 commit separate from other changes.
3317
3318 * `jj workspace add` now accepts a `--sparse-patterns=<MODE>` option, which
3319 allows control of the sparse patterns for a newly created workspace: `copy`
3320 (inherit from parent; default), `full` (full working copy), or `empty` (the
3321 empty working copy).
3322
3323 * New command `jj workspace rename` that can rename the current workspace.
3324
3325 * `jj op log` gained an option to include operation diffs.
3326
3327 * `jj git clone` now accepts a `--remote <REMOTE NAME>` option, which
3328 allows to set a name for the remote instead of using the default
3329 `origin`.
3330
3331 * `jj op undo` now reports information on the operation that has been undone.
3332
3333 * `jj squash`: the `-k` flag can be used as a shorthand for `--keep-emptied`.
3334
3335 * CommitId / ChangeId template types now support `.normal_hex()`.
3336
3337 * `jj commit` and `jj describe` now accept `--author` option allowing to quickly change
3338 author of given commit.
3339
3340 * `jj diffedit`, `jj abandon`, and `jj restore` now accept a `--restore-descendants`
3341 flag. When used, descendants of the edited or deleted commits will keep their original
3342 content.
3343
3344 * `jj git fetch -b <remote-git-branch-name>` will now warn if the branch(es)
3345 can not be found in any of the specified/configured remotes.
3346
3347 * `jj split` now lets the user select all changes in interactive mode. This may be used
3348 to keeping all changes into the first commit while keeping the current commit
3349 description for the second commit (the newly created empty one).
3350
3351 * Author and committer names are now yellow by default.
3352
3353 ### Fixed bugs
3354
3355 * Update working copy before reporting changes. This prevents errors during reporting
3356 from leaving the working copy in a stale state.
3357
3358 * Fixed panic when parsing invalid conflict markers of a particular form.
3359 ([#2611](https://github.com/jj-vcs/jj/pull/2611))
3360
3361 * Editing a hidden commit now makes it visible.
3362
3363 * The `present()` revset now suppresses missing working copy error. For example,
3364 `present(@)` evaluates to `none()` if the current workspace has no
3365 working-copy commit.
3366
3367 ### Contributors
3368
3369 Thanks to the people who made this release happen!
3370
3371 * Austin Seipp (@thoughtpolice)
3372 * Danny Hooper (@hooper)
3373 * Emily Shaffer (@nasamuffin)
3374 * Essien Ita Essien (@essiene)
3375 * Ethan Brierley (@eopb)
3376 * Ilya Grigoriev (@ilyagr)
3377 * Kevin Liao (@kevincliao)
3378 * Lukas Wirth (@Veykril)
3379 * Martin von Zweigbergk (@martinvonz)
3380 * Mateusz Mikuła (@mati865)
3381 * mlcui (@mlcui-corp)
3382 * Philip Metzger (@PhilipMetzger)
3383 * Samuel Tardieu (@samueltardieu)
3384 * Stephen Jennings (@jennings)
3385 * Tyler Goffinet (@qubitz)
3386 * Vamsi Avula (@avamsi)
3387 * Yuya Nishihara (@yuja)
3388
3389 ## [0.21.0] - 2024-09-04
3390
3391 ### Breaking changes
3392
3393 * `next/prev` will no longer infer when to go into edit mode when moving from
3394 commit to commit. It now either follows the flags `--edit|--no-edit` or it
3395 gets the mode from `ui.movement.edit`.
3396
3397 ### Deprecations
3398
3399 * `jj untrack` has been renamed to `jj file untrack`.
3400
3401 ### New features
3402
3403 * Add new boolean config knob, `ui.movement.edit` for controlling the behavior
3404 of `prev/next`. The flag turns `edit` mode `on` and `off` permanently when set
3405 respectively to `true` or `false`.
3406
3407 * All diff formats except `--name-only` now include information about copies and
3408 moves. So do external diff tools in file-by-file mode. `jj status` also
3409 includes information about copies and moves.
3410
3411 * Color-words diff has gained [an option to display complex changes as separate
3412 lines](docs/config.md#color-words-diff-options). It's enabled by default. To
3413 restore the old behavior, set `diff.color-words.max-inline-alternation = -1`.
3414
3415 * A tilde (`~`) at the start of the path will now be expanded to the user's home
3416 directory when configuring a `signing.key` for SSH commit signing.
3417
3418 * When reconfiguring the author, warn that the working copy won't be updated
3419
3420 * `jj rebase -s` can now be used with the `--insert-after` and `--insert-before`
3421 options, like `jj rebase -r`.
3422
3423 ### Fixed bugs
3424
3425 * Release binaries for Intel Macs have been restored. They were previously
3426 broken due to using a sunset version of GitHub's macOS runners (but nobody had
3427 previously complained.)
3428
3429 ### Contributors
3430
3431 Thanks to the people who made this release happen!
3432
3433 * Aaron Bull Schaefer (@elasticdog)
3434 * Austin Seipp (@thoughtpolice)
3435 * Benjamin Tan (@bnjmnt4n)
3436 * Raniz Daniel Raneland (@Raniz85)
3437 * Daniel Ploch (@torquestomp)
3438 * Essien Ita Essien (@essiene)
3439 * Ilya Grigoriev (@ilyagr)
3440 * Kaleb Pace (@kalebpace)
3441 * Marie (@NyCodeGHG)
3442 * Marijan Smetko (@InCogNiTo124)
3443 * Martin von Zweigbergk (@martinvonz)
3444 * Matt Kulukundis (@fowles)
3445 * Scott Taylor (@scott2000)
3446 * Stephen Jennings (@jennings)
3447 * tingerrr (@tingerrr)
3448 * Yuya Nishihara (@yuja)
3449
3450 ## [0.20.0] - 2024-08-07
3451
3452 ### Note to packagers
3453
3454 * `jj` now links `libgit2` statically by default. To use dynamic linking, you
3455 need to set the environment variable `LIBGIT2_NO_VENDOR=1` while compiling.
3456 ([#4163](https://github.com/jj-vcs/jj/pull/4163))
3457
3458 ### Breaking changes
3459
3460 * `jj rebase --skip-empty` has been renamed to `jj rebase --skip-emptied`
3461
3462 * `jj backout --revision` has been renamed to `jj backout --revisions`.
3463 The short alias `-r` is still supported.
3464
3465 * [The default `immutable_heads()` set](docs/config.md#set-of-immutable-commits)
3466 now includes `untracked_remote_branches()` with the assumption that untracked
3467 branches aren't managed by you. Therefore, untracked branches are no longer
3468 displayed in `jj log` by default.
3469
3470 * Updated defaults for graph node symbol templates `templates.log_node` and
3471 `templates.op_log_node`.
3472
3473 * [The "fileset" language](docs/filesets.md) is now enabled by default. It can
3474 still be disabled by setting `ui.allow-filesets=false`.
3475
3476 * On `jj git fetch`/`import`, commits referred to by `HEAD@git` are no longer
3477 preserved. If a checked-out named branch gets deleted locally or remotely, the
3478 corresponding commits will be abandoned.
3479
3480 * `jj --at-op=@` no longer merges concurrent operations if explicitly specified.
3481
3482 * `jj obslog -p` no longer shows diffs at non-partial squash operations.
3483 Previously, it showed the same diffs as the second predecessor.
3484
3485 ### Deprecations
3486
3487 * The original configuration syntax for `jj fix` is now deprecated in favor of
3488 one that allows defining multiple tools that can affect different filesets.
3489 These can be used in combination for now. See `jj help fix` for details.
3490
3491 ### New features
3492
3493 * Define `immutable_heads()` revset alias in terms of a new `builtin_immutable_heads()`.
3494 This enables users to redefine `immutable_heads()` as they wish, but still
3495 have `builtin_immutable_heads()` which should not be redefined.
3496
3497 * External diff tools can now be configured to invoke the tool on each file
3498 individually instead of being passed a directory by setting
3499 `merge-tools.$TOOL.diff-invocation-mode="file-by-file"` in config.toml.
3500
3501 * In git diffs, word-level hunks are now highlighted with underline. See [diff
3502 colors and styles](docs/config.md#diff-colors-and-styles) for customization.
3503
3504 * New `.diff().<format>()` commit template methods are added. They can be used
3505 in order to show diffs conditionally. For example,
3506 `if(current_working_copy, diff.summary())`.
3507
3508 * `jj git clone` and `jj git init` with an existing git repository adds the
3509 default branch of the remote as repository settings for
3510 `revset-aliases."trunk()"`.`
3511
3512 * `jj workspace forget` now abandons the workspace's working-copy commit if it
3513 was empty.
3514
3515 * `jj backout` now includes the backed out commit's subject in the new commit
3516 message.
3517
3518 * `jj backout` can now back out multiple commits at once.
3519
3520 * `jj git clone some/nested/path` now creates the full directory tree for
3521 nested destination paths if they don't exist.
3522
3523 * String patterns now support case‐insensitive matching by suffixing any
3524 pattern kind with `-i`. `mine()` uses case‐insensitive matching on your email
3525 address unconditionally. Only ASCII case folding is currently implemented,
3526 but this will likely change in the future.
3527
3528 * String patterns now support `regex:"pattern"`.
3529
3530 * New `tracked_remote_branches()` and `untracked_remote_branches()` revset
3531 functions can be used to select tracked/untracked remote branches.
3532
3533 * The `file()` revset function now accepts fileset as argument.
3534
3535 * New `diff_contains()` revset function can be used to search diffs.
3536
3537 * New command `jj operation diff` that can compare changes made between two
3538 operations.
3539
3540 * New command `jj operation show` that can show the changes made in a single
3541 operation.
3542
3543 * New config setting `git.private-commits` to prevent commits from being pushed.
3544
3545 * [The default commit description template](docs/config.md#default-description)
3546 can now be configured by `templates.draft_commit_description`.
3547
3548 * `jj fix` can now be configured to run different tools on different filesets.
3549 This simplifies the use case of configuring code formatters for specific file
3550 types. See `jj help fix` for details.
3551
3552 * Added revset functions `author_date` and `committer_date`.
3553
3554 * `jj describe` can now update the description of multiple commits.
3555
3556 ### Fixed bugs
3557
3558 * `jj status` will show different messages in a conflicted tree, depending
3559 on the state of the working commit. In particular, if a child commit fixes
3560 a conflict in the parent, this will be reflected in the hint provided
3561 by `jj status`
3562
3563 * `jj diff --git` no longer shows the contents of binary files.
3564
3565 * Windows binaries no longer require `vcruntime140.dll` to be installed
3566 (normally through Visual Studio.)
3567
3568 * On quit, the builtin pager no longer waits for all outputs to be discarded.
3569
3570 * `jj branch rename` no longer shows a warning in colocated repos.
3571
3572 ### Contributors
3573
3574 Thanks to the people who made this release happen!
3575
3576 * Anton Älgmyr (@algmyr)
3577 * Austin Seipp (@thoughtpolice)
3578 * Benjamin Tan (@bnjmnt4n)
3579 * Daniel Ploch (@torquestomp)
3580 * Danny Hooper (@hooper)
3581 * Emily (@emilazy)
3582 * Essien Ita Essien (@essiene)
3583 * Fedor Sheremetyev (@sheremetyev)
3584 * Ilya Grigoriev (@ilyagr)
3585 * Jonathan Tan (@jonathantanmy)
3586 * Julien Vincent (@julienvincent)
3587 * Martin von Zweigbergk (@martinvonz)
3588 * Matt Kulukundis (@fowles)
3589 * Matt Stark (@matts1)
3590 * mlcui (@mlcui-corp)
3591 * Philip Metzger (@PhilipMetzger)
3592 * Scott Taylor (@scott2000)
3593 * Skyler Grey (@Minion3665)
3594 * Stephen Jennings (@jennings)
3595 * Tim Janik (@tim-janik)
3596 * Vincent Ging Ho Yim (@cenviity)
3597 * Vladimír Čunát (@vcunat)
3598 * Vladimir (@0xdeafbeef)
3599 * Yuya Nishihara (@yuja)
3600
3601 ## [0.19.0] - 2024-07-03
3602
3603 ### Breaking changes
3604
3605 * In revset aliases, top-level `kind:pattern` expression is now parsed as
3606 modifier. Surround with parentheses if it should be parsed as string/file
3607 pattern.
3608
3609 * Dropped support for automatic upgrade of repo formats used by versions before
3610 0.12.0.
3611
3612 * `jj fix` now defaults to the broader revset `-s reachable(@, mutable())`
3613 instead of `-s @`.
3614
3615 * Dropped support for deprecated `jj branch delete`/`forget` `--glob` option.
3616
3617 * `jj branch set` now creates new branch if it doesn't exist. Use `jj branch
3618 move` to ensure that the target branch already exists.
3619 [#3584](https://github.com/jj-vcs/jj/issues/3584)
3620
3621 ### Deprecations
3622
3623 * Replacing `-l` shorthand for `--limit` with `-n` in `jj log`, `jj op log`
3624 and `jj obslog`.
3625
3626 * `jj split --siblings` is deprecated in favor of `jj split --parallel` (to
3627 match `jj parallelize`).
3628
3629 * A new `jj file` subcommand now replaces several existing uncategorized
3630 commands, which are deprecated.
3631 - `jj file show` replaces `jj cat`.
3632 - `jj file chmod` replaces `jj chmod`.
3633 - `jj file list` replaces `jj files`.
3634
3635 ### New features
3636
3637 * Support background filesystem monitoring via watchman triggers enabled with
3638 the `core.watchman.register_snapshot_trigger = true` config.
3639
3640 * Show paths to config files when configuration errors occur.
3641
3642 * `jj fix` now supports configuring the default revset for `-s` using the
3643 `revsets.fix` config.
3644
3645 * The `descendants()` revset function now accepts an optional `depth` argument;
3646 like the `ancestors()` depth argument, it limits the depth of the set.
3647
3648 * Revset/template aliases now support function overloading.
3649 [#2966](https://github.com/jj-vcs/jj/issues/2966)
3650
3651 * Conflicted files are individually simplified before being materialized.
3652
3653 * The `jj file` subcommand now contains several existing file utilities.
3654 - `jj file show`, replacing `jj cat`.
3655 - `jj file chmod` replacing `jj chmod`.
3656 - `jj file list` replacing `jj files`.
3657
3658 * New command `jj branch move` let you update branches by name pattern or source
3659 revision.
3660
3661 * New diff option `jj diff --name-only` allows for easier shell scripting.
3662
3663 * In color-words diffs, hunks are now highlighted with underline. See [diff
3664 colors and styles](docs/config.md#diff-colors-and-styles) for customization.
3665
3666 * `jj git push -c <arg>` can now accept revsets that resolve to multiple
3667 revisions. This means that `jj git push -c xyz -c abc` is now equivalent to
3668 `jj git push -c 'all:(xyz | abc)'`.
3669
3670 * `jj prev` and `jj next` have gained a `--conflict` flag which moves you
3671 to the next conflict in a child commit.
3672
3673 * New command `jj git remote set-url` that sets the url of a git remote.
3674
3675 * Author timestamp is now reset when rewriting discardable commits (empty
3676 commits with no description) if authored by the current user.
3677 [#2000](https://github.com/jj-vcs/jj/issues/2000)
3678
3679 * `jj commit` now accepts `--reset-author` option to match `jj describe`.
3680
3681 * `jj squash` now accepts a `--keep-emptied` option to keep the source commit.
3682
3683 ### Fixed bugs
3684
3685 * `jj git push` now ignores immutable commits when checking whether a
3686 to-be-pushed commit has conflicts, or has no description / committer / author
3687 set. [#3029](https://github.com/jj-vcs/jj/issues/3029)
3688
3689 * `jj` will look for divergent changes outside the short prefix set even if it
3690 finds the change id inside the short prefix set.
3691 [#2476](https://github.com/jj-vcs/jj/issues/2476)
3692
3693 ### Contributors
3694
3695 Thanks to the people who made this release happen!
3696
3697 * Austin Seipp (@thoughtpolice)
3698 * Benjamin Tan (@bnjmnt4n)
3699 * Daniel Ploch (@torquestomp)
3700 * Danny Hooper (@hooper)
3701 * Ilya Grigoriev (@ilyagr)
3702 * James Sully (@sullyj3)
3703 * Jonathan Tan (@jonathantanmy)
3704 * Kyle J Strand (@BatmanAoD)
3705 * Manuel Caldeira (@KiitoX)
3706 * Martin von Zweigbergk (@martinvonz)
3707 * Matt Kulukundis (@fowles)
3708 * Matt Stark (@matts1)
3709 * mlcui (@mlcui-corp)
3710 * Philip Metzger (@PhilipMetzger)
3711 * Scott Taylor (@scott2000)
3712 * Simon Wollwage (@Kintaro)
3713 * Tal Pressman (@tp-woven)
3714 * Yuya Nishihara (@yuja)
3715
3716 ## [0.18.0] - 2024-06-05
3717
3718 ### Breaking changes
3719
3720 * Dropped support for `ui.default-revset` config (replaced by `revsets.log` in
3721 0.8.0).
3722
3723 * The `commit_summary_no_branches` template is superseded by
3724 `templates.branch_list`.
3725
3726 * `jj split` will now refuse to split an empty commit.
3727
3728 * `jj config list` now uses multi-line strings and single-quoted strings in the
3729 output when appropriate.
3730
3731 * `jj config get`/`list`/`set` now parse `name` argument as [TOML
3732 key](https://toml.io/en/v1.0.0#keys). Quote meta characters as needed.
3733 Example: `jj config get "revset-aliases.'trunk()'"`
3734
3735 * When updating the working copy away from an empty and undescribed commit, it
3736 is now abandoned even if it is a merge commit.
3737
3738 * If a new working-copy commit is created because the old one was abandoned, and
3739 the old commit was merge, then the new commit will now also be.
3740 [#2859](https://github.com/jj-vcs/jj/issues/2859)
3741
3742 * `jj new`'s `--insert-before`/`--insert-after` options must now be set for each
3743 commit the new commit will be inserted before/after. Previously, those options
3744 were global flags and specifying them once would insert the new commit before/
3745 after all the specified commits.
3746
3747 ### Deprecations
3748
3749 * Attempting to alias a built-in command now gives a warning, rather than being
3750 silently ignored.
3751
3752 ### New features
3753
3754 * `jj branch list`/`tag list` now accept `-T`/`--template` option. The tag list
3755 prints commit summary along with the tag name by default.
3756
3757 * Conflict markers now include an explanation of what each part of the conflict
3758 represents.
3759
3760 * `ui.color = "debug"` prints active labels alongside the regular colored
3761 output.
3762
3763 * `jj branch track` now show conflicts if there are some.
3764
3765 * A new revset `reachable(srcs, domain)` will return all commits that are
3766 reachable from `srcs` within `domain`.
3767
3768 * There are now prebuilt binaries for `aarch64-linux-unknown-musl`.
3769 Note, these are cross compiled and currently untested.
3770 We plan on providing fully tested builds later once our CI system allows it.
3771
3772 * Added new revsets `mutable()` and `immutable()`.
3773
3774 * Upgraded `scm-record` from v0.2.0 to v0.3.0. See release notes at
3775 <https://github.com/arxanas/scm-record/releases/tag/v0.3.0>
3776
3777 * New command `jj fix` that can be configured to update commits by running code
3778 formatters (or similar tools) on changed files. The configuration schema and
3779 flags are minimal for now, with a number of improvements planned (for example,
3780 [#3800](https://github.com/jj-vcs/jj/issues/3800) and
3781 [#3801](https://github.com/jj-vcs/jj/issues/3801)).
3782
3783 * `jj new`'s `--insert-before` and `--insert-after` options can now be used
3784 simultaneously.
3785
3786 * `jj git push` now can push commits with empty descriptions with the
3787 `--allow-empty-description` flag
3788
3789 ### Fixed bugs
3790
3791 * Previously, `jj git push` only made sure that the branch is in the expected
3792 location on the remote server when pushing a branch forward (as opposed to
3793 sideways or backwards). Now, `jj git push` makes a safety check in all cases
3794 and fails whenever `jj git fetch` would have introduced a conflict.
3795
3796 In other words, previously branches that moved sideways or backward were
3797 pushed similarly to Git's `git push --force`; now they have protections
3798 similar to `git push --force-with-lease` (though not identical to it, to match
3799 the behavior of `jj git fetch`). Note also that because of the way `jj git
3800 fetch` works, `jj` does not suffer from the same problems as Git's `git push
3801 --force-with-lease` in situations when `git fetch` is run in the background.
3802
3803 * When the working copy commit becomes immutable, a new one is automatically
3804 created
3805 on top of it to avoid letting the user edit the immutable one.
3806
3807 * `jj config list` now properly escapes TOML keys (#1322).
3808
3809 * Files with conflicts are now checked out as executable if all sides of the
3810 conflict are executable.
3811
3812 * The progress bar (visible when using e.g. `jj git clone`) clears the
3813 remainder of the cursor row after drawing rather than clearing the entire row
3814 before drawing, eliminating the "flicker" effect seen on some terminals.
3815
3816 ### Contributors
3817
3818 Thanks to the people who made this release happen!
3819
3820 * Alexander Potashev (@aspotashev)
3821 * Austin Seipp (@thoughtpolice)
3822 * Benjamin Tan (@bnjmnt4n)
3823 * Charles Crete (@Cretezy)
3824 * Daniel Ploch (@torquestomp)
3825 * Danny Hooper (@hooper)
3826 * Eidolon (@HybridEidolon)
3827 * Glen Choo (@chooglen)
3828 * Gregory Anders (@gpanders)
3829 * Ilya Grigoriev (@ilyagr)
3830 * jyn (@jyn514)
3831 * Martin von Zweigbergk (@martinvonz)
3832 * Matt Stark (@matts1)
3833 * Matthew Davidson (@KingMob)
3834 * Michael Gattozzi (@mgattozzi)
3835 * mlcui (@mlcui-corp)
3836 * Philip Metzger (@PhilipMetzger)
3837 * Remo Senekowitsch (@senekor)
3838 * Thomas Castiglione (@gulbanana)
3839 * Théo Daron (@tdaron)
3840 * tinger (@tingerrr)
3841 * Waleed Khan (@arxanas)
3842 * Yuya Nishihara (@yuja)
3843
3844 ## [0.17.1] - 2024-05-07
3845
3846 ### Fixed bugs
3847
3848 * `jj status` no longer scans through the entire history to look for ancestors
3849 with conflicts.
3850
3851 ## [0.17.0] - 2024-05-01
3852
3853 ### Breaking changes
3854
3855 * The default template aliases were replaced as follows:
3856 * `builtin_op_log_root(op_id: OperationId)` ->
3857 `format_root_operation(root: Operation)`
3858 * `builtin_log_root(change_id: ChangeId, commit_id: CommitId)` ->
3859 `format_root_commit(root: Commit)`
3860 * `builtin_change_id_with_hidden_and_divergent_info` ->
3861 `format_short_change_id_with_hidden_and_divergent_info(commit: Commit)`
3862
3863 * The `--revision` option of `jj rebase` is renamed to `--revisions`. The short
3864 alias `-r` is still supported.
3865
3866 ### New features
3867
3868 * The list of conflicted paths is printed whenever the working copy changes.
3869 This can be disabled with the `--quiet` option.
3870
3871 * Commit objects in templates now have a `mine() -> Boolean` method analog to
3872 the same function in revsets. It evaluates to true if the email of the commit
3873 author matches the current `user.email`.
3874
3875 * Commit objects in templates now have a `contained_in(revset: String) ->
3876 Boolean` method.
3877
3878 * Operation objects in templates now have a `snapshot() -> Boolean` method that
3879 evaluates to true if the operation was a snapshot created by a non-mutating
3880 command (e.g. `jj log`).
3881
3882 * Revsets and templates now support single-quoted raw string literals.
3883
3884 * A new config option `ui.always-allow-large-revsets` has been added to
3885 allow large revsets expressions in some commands, without the `all:` prefix.
3886
3887 * A new config option `ui.allow-filesets` has been added to enable ["fileset"
3888 expressions](docs/filesets.md). Note that filesets are currently experimental,
3889 but will be enabled by default in a future release.
3890
3891 * A new global flag `--ignore-immutable` lets you rewrite immutable commits.
3892
3893 * New command `jj parallelize` that rebases a set of revisions into siblings.
3894
3895 * `jj status` now supports filtering by paths. For example, `jj status .` will
3896 only list changed files that are descendants of the current directory.
3897
3898 * `jj prev` and `jj next` now work when the working copy revision is a merge.
3899
3900 * `jj squash` now accepts a `--use-destination-message/-u` option that uses the
3901 description of the destination for the new squashed revision and discards the
3902 descriptions of the source revisions.
3903
3904 * You can check whether Watchman fsmonitor is enabled or installed with the new
3905 `jj debug watchman status` command.
3906
3907 * `jj rebase` now accepts revsets resolving to multiple revisions with the
3908 `--revisions`/`-r` option.
3909
3910 * `jj rebase -r` now accepts `--insert-after` and `--insert-before` options to
3911 customize the location of the rebased revisions.
3912
3913 ### Fixed bugs
3914
3915 * Revsets now support `\`-escapes in string literal.
3916
3917 * The builtin diff editor now allows empty files to be selected during
3918 `jj split`.
3919
3920 * Fixed a bug with `jj split` introduced in 0.16.0 that caused it to incorrectly
3921 rebase the children of the revision being split if they had other parents
3922 (i.e. if the child was a merge).
3923
3924 * The `snapshot.max-new-file-size` option can now handle raw integer literals,
3925 interpreted as a number of bytes, where previously it could only handle string
3926 literals. This means that `snapshot.max-new-file-size="1"` and
3927 `snapshot.max-new-file-size=1` are now equivalent.
3928
3929 * `jj squash <path>` is now a no-op if the path argument didn't match any paths
3930 (it used to create new commits with bumped timestamp).
3931 [#3334](https://github.com/jj-vcs/jj/issues/3334)
3932
3933 ### Contributors
3934
3935 Thanks to the people who made this release happen!
3936
3937 * Anton Älgmyr (@algmyr)
3938 * Anton Bulakh (@necauqua)
3939 * Austin Seipp (@thoughtpolice)
3940 * Benjamin Tan (@bnjmnt4n)
3941 * Cretezy (@Cretezy)
3942 * Daniel Ploch (@torquestomp)
3943 * Evan Mesterhazy (@emesterhazy)
3944 * Ilya Grigoriev (@ilyagr)
3945 * Martin von Zweigbergk (@martinvonz)
3946 * Noah Mayr (@noahmayr)
3947 * Jeremy O'Brien (@neutralinsomniac)
3948 * Jonathan Lorimer (@JonathanLorimer)
3949 * Philip Metzger (@PhilipMetzger)
3950 * Poliorcetics (@poliorcetics)
3951 * Rowan Walsh (@rowan-walsh)
3952 * Scott Olson (@solson)
3953 * Théo Daron (@tdaron)
3954 * Yuya Nishihara (@yuja)
3955
3956 ## [0.16.0] - 2024-04-03
3957
3958 ### Deprecations
3959
3960 * `jj move` was deprecated in favor of `jj squash`.
3961
3962 ### Breaking changes
3963
3964 * The `git_head` template keyword now returns an optional value instead of a
3965 list of 0 or 1 element.
3966
3967 * The `jj sparse set --edit`/`--reset` flags were split up into `jj sparse
3968 edit`/`reset` subcommands respectively.
3969
3970 * The `jj sparse` subcommands now parse and print patterns as workspace-relative
3971 paths.
3972
3973 * The `jj log` command no longer uses the default revset when a path is
3974 specified.
3975
3976 ### New features
3977
3978 * Config now supports rgb hex colors (in the form `#rrggbb`) wherever existing
3979 color names are supported.
3980
3981 * `ui.default-command` now accepts multiple string arguments, for more complex
3982 default `jj` commands.
3983
3984 * Graph node symbols are now configurable via templates
3985 * `templates.log_node`
3986 * `templates.op_log_node`
3987
3988 * `jj log` now includes synthetic nodes in the graph where some revisions were
3989 elided.
3990
3991 * `jj squash` now accepts `--from` and `--into` (also aliased as `--to`) if `-r`
3992 is not specified. It can now be used for all use cases where `jj move` could
3993 previously be used. The `--from` argument accepts a revset that resolves to
3994 more than one revision.
3995
3996 * Commit templates now support `immutable` keyword.
3997
3998 * New template function `coalesce(content, ..)` is added.
3999
4000 * Timestamps are now shown in local timezone and without milliseconds and
4001 timezone offset by default.
4002
4003 * `jj git push` now prints messages from the remote.
4004
4005 * `jj branch list` now supports a `--conflicted/-c` option to show only
4006 conflicted branches.
4007
4008 * `jj duplicate` and `jj abandon` can now take more than a single `-r` argument,
4009 for consistency with other commands.
4010
4011 * `jj branch list` now allows combining `-r REVISIONS`/`NAMES` and `-a` options.
4012
4013 * `--all` is now named `--all-remotes` for `jj branch list`
4014
4015 * There is a new global `--quiet` flag to silence commands' non-primary output.
4016
4017 * `jj split` now supports a `--siblings/-s` option that splits the target
4018 revision into siblings with the same parents and children.
4019
4020 * New function `working_copies()` for revsets to show the working copy commits
4021 of all workspaces.
4022
4023 ### Fixed bugs
4024
4025 None.
4026
4027 ### Contributors
4028
4029 Thanks to the people who made this release happen!
4030
4031 * Aleksey Kuznetsov (@zummenix)
4032 * Anton Älgmyr (@algmyr)
4033 * Austin Seipp (@thoughtpolice)
4034 * Benjamin Tan (@bnjmnt4n)
4035 * Chris Krycho (@chriskrycho)
4036 * Christoph Koehler (@ckoehler)
4037 * Daniel Ploch (@torquestomp)
4038 * Evan Mesterhazy (@emesterhazy)
4039 * Ilya Grigoriev (@ilyagr)
4040 * Khionu Sybiern (@khionu)
4041 * Martin von Zweigbergk (@martinvonz)
4042 * Matthew Davidson (@KingMob)
4043 * mrstanwell (@mrstanwell)
4044 * Noah Mayr (@noahmayr)
4045 * Patric Stout (@TrueBrain)
4046 * Poliorcetics (@poliorcetics)
4047 * Simon Wollwage (@Kintaro)
4048 * Steve Klabnik (@steveklabnik)
4049 * Tom Ward (@tomafro)
4050 * TrashCan (@TrashCan69420)
4051 * Yuya Nishihara (@yuja)
4052
4053 ## [0.15.1] - 2024-03-06
4054
4055 No code changes (fixing Rust `Cargo.toml` stuff).
4056
4057 ## [0.15.0] - 2024-03-06
4058
4059 ### Breaking changes
4060
4061 * The minimum supported Rust version (MSRV) is now 1.76.0.
4062
4063 * The on-disk index format changed. New index files will be created
4064 automatically, but it can fail if the repository is colocated and predates
4065 Git GC issues [#815](https://github.com/jj-vcs/jj/issues/815). If
4066 reindexing failed, you'll need to clean up corrupted operation history by
4067 `jj op abandon ..<bad operation ID>`.
4068
4069 * Dropped support for the "legacy" graph-drawing style. Use "ascii" for a very
4070 similar result.
4071
4072 * The default log output no longer lists all tagged heads. Set `revsets.log =
4073 "@ | ancestors(immutable_heads().., 2) | heads(immutable_heads())"` to restore
4074 the old behavior.
4075
4076 * Dropped support for the deprecated `:` revset operator. Use `::` instead.
4077
4078 * `jj rebase --skip-empty` no longer abandons commits that were already empty
4079 before the rebase.
4080
4081 ### New features
4082
4083 * Partial support for commit signing. Currently you can configure jj to "keep"
4084 commit signatures by making new ones for rewritten commits, and to sign new
4085 commits when they are created.
4086
4087 This comes with out-of-the-box support for the following backends:
4088 * GnuPG
4089 * SSH
4090
4091 Signature verification and an explicit sign command will hopefully come soon.
4092
4093 * Templates now support logical operators: `||`, `&&`, `!`
4094
4095 * Templates now support the `self` keyword, which is the current commit in `jj
4096 log`/`obslog` templates.
4097
4098 * `jj show` now accepts `-T`/`--template` option to render its output using
4099 template
4100
4101 * `jj config list` now accepts `-T`/`--template` option.
4102
4103 * `jj git fetch` now accepts `-b` as a shorthand for `--branch`, making it more
4104 consistent with other commands that accept a branch
4105
4106 * In the templating language, Timestamps now have a `.local()` method for
4107 converting to the local timezone.
4108
4109 * `jj next/prev` now infer `--edit` when you're already editing a non-head
4110 commit (a commit with children).
4111
4112 * A new built-in pager named `:builtin` is available on all platforms,
4113 implemented with [minus](https://github.com/arijit79/minus/)
4114
4115 * Set config `ui.log-synthetic-elided-nodes = true` to make `jj log` include
4116 synthetic nodes in the graph where some revisions were elided
4117 ([#1252](https://github.com/jj-vcs/jj/issues/1252),
4118 [#2971](https://github.com/jj-vcs/jj/issues/2971)). This may become the
4119 default depending on feedback.
4120
4121 * When creating a new workspace, the sparse patterns are now copied over from
4122 the current workspace.
4123
4124 * `jj git init --colocate` can now import an existing Git repository. This is
4125 equivalent to `jj git init --git-repo=.`.
4126
4127 * `jj git fetch` now automatically prints new remote branches and tags by
4128 default.
4129
4130 * `--verbose/-v` is now `--debug` (no short option since it's not intended to be
4131 used often)
4132
4133 * `jj move --from/--to` can now be abbreviated to `jj move -f/-t`
4134
4135 * `jj commit`/`diffedit`/`move`/`resolve`/`split`/`squash`/`unsquash` now accept
4136 `--tool=<NAME>` option to override the default.
4137 [#2575](https://github.com/jj-vcs/jj/issues/2575)
4138
4139 * Added completions for [Nushell](https://nushell.sh) to `jj util completion`
4140
4141 * `jj branch list` now supports a `--tracked/-t` option which can be used to
4142 show tracked branches only. Omits local Git-tracking branches by default.
4143
4144 * Commands producing diffs now accept a `--context` flag for the number of
4145 lines of context to show.
4146
4147 * `jj` commands with the `-T`/`--template` option now provide a hint containing
4148 defined template names when no argument is given, assisting the user in making
4149 a selection.
4150
4151 ### Fixed bugs
4152
4153 * On Windows, symlinks in the repo are now supported when Developer Mode is
4154 enabled.
4155 When symlink support is unavailable, they will be materialized as regular
4156 files in the
4157 working copy (instead of resulting in a crash).
4158 [#2](https://github.com/jj-vcs/jj/issues/2)
4159
4160 * On Windows, the `:builtin` pager is now used by default, rather than being
4161 disabled entirely.
4162
4163 * Auto-rebase now preserves the shape of history even for merge commits where
4164 one parent is an ancestor of another.
4165 [#2600](https://github.com/jj-vcs/jj/issues/2600)
4166
4167 ### Contributors
4168
4169 Thanks to the people who made this release happen!
4170
4171 * Aleksey Kuznetsov (@zummenix)
4172 * Anton Bulakh (@necauqua)
4173 * Anton Älgmyr (@algmyr)
4174 * Austin Seipp (@thoughtpolice)
4175 * Benjamin Brittain (@benbrittain)
4176 * Benjamin Tan (@bnjmnt4n)
4177 * Daehyeok Mun (@daehyeok)
4178 * Daniel Ploch (@torquestomp)
4179 * Evan Mesterhazy (@emesterhazy)
4180 * gulbanana (@gulbanana)
4181 * Ilya Grigoriev (@ilyagr)
4182 * Jonathan Tan (@jonathantanmy)
4183 * Julien Vincent (@julienvincent)
4184 * jyn (@jyn514)
4185 * Martin von Zweigbergk (@martinvonz)
4186 * Paulo Coelho (@prscoelho)
4187 * Philip Metzger (@PhilipMetzger)
4188 * Poliorcetics (@poliorcetics)
4189 * Stephen Jennings (@jennings)
4190 * Vladimir (@0xdeafbeef)
4191 * Yuya Nishihara (@yuja)
4192
4193 ## [0.14.0] - 2024-02-07
4194
4195 ### Deprecations
4196
4197 * `jj checkout` and `jj merge` are both deprecated; use `jj new` instead to
4198 replace both of these commands in all instances.
4199
4200 **Rationale**: `jj checkout` and `jj merge` both implement identical
4201 functionality, which is a subset of `jj new`. `checkout` creates a new working
4202 copy commit on top of a single specified revision, i.e. with one parent.
4203 `merge` creates a new working copy commit on top of *at least* two specified
4204 revisions, i.e. with two or more parents.
4205
4206 The only difference between these commands and `jj new`, which *also* creates
4207 a new working copy commit, is that `new` can create a working copy commit on
4208 top of any arbitrary number of revisions, so it can handle both the previous
4209 cases at once. The only actual difference between these three commands is the
4210 command syntax and their name. These names were chosen to be familiar to users
4211 of other version control systems, but we instead encourage all users to adopt
4212 `jj new` instead; it is more general and easier to remember than both of
4213 these.
4214
4215 `jj checkout` and `jj merge` will no longer be shown as part of `jj help`, but
4216 will still function for now, emitting a warning about their deprecation.
4217
4218 **Deadline**: `jj checkout` and `jj merge` will be deleted and are expected
4219 become a **hard error later in 2024**.
4220
4221 * `jj init --git` and `jj init --git-repo` are now deprecated and will be
4222 removed
4223 in the near future.
4224
4225 Use `jj git init` instead.
4226
4227 ### Breaking changes
4228
4229 * (Minor) Diff summaries (e.g. `jj diff -s`) now use `D` for "Deleted" instead
4230 of `R` for "Removed". @joyously pointed out that `R` could also mean
4231 "Renamed".
4232
4233 * `jj util completion` now takes the shell as a positional argument, not a flag.
4234 the previous behavior is deprecated, but supported for now. it will be removed
4235 in the future.
4236
4237 * `jj rebase` now preserves the shape of history even for merge commits where
4238 one parent is an ancestor of another. You can follow the `jj rebase` by
4239 `jj rebase -s <merge commit> -d <single parent>` if you want to linearize the
4240 history.
4241
4242 ### New features
4243
4244 * `jj util completion` now supports powershell and elvish.
4245
4246 * Official binaries for macOS running on Apple Silicon (`aarch64-apple-darwin`)
4247 are now available, alongside the existing macOS x86 binaries.
4248
4249 * New `jj op abandon` command is added to clean up the operation history. Git
4250 refs and commit objects can be further compacted by `jj util gc`.
4251
4252 * `jj util gc` now removes unreachable operation, view, and Git objects.
4253
4254 * `jj branch rename` will now warn if the renamed branch has a remote branch,
4255 since
4256 those will have to be manually renamed outside of `jj`.
4257
4258 * `jj git push` gained a `--tracked` option, to push all the tracked branches.
4259
4260 * There's now a virtual root operation, similar to the [virtual root
4261 commit](docs/glossary.md#root-commit). It appears at the end of `jj op log`.
4262
4263 * `jj config list` gained a `--include-overridden` option to allow
4264 printing overridden config values.
4265
4266 * `jj config list` now accepts `--user` or `--repo` option to specify
4267 config origin.
4268
4269 * New `jj config path` command to print the config file path without launching
4270 an editor.
4271
4272 * `jj tag list` command prints imported git tags.
4273
4274 * `jj next` and `jj prev` now prompt in the event of the next/previous commit
4275 being ambiguous, instead of failing outright.
4276
4277 * `jj resolve` now displays the file being resolved.
4278
4279 * `jj workspace root` was aliased to `jj root`, for ease of discoverability
4280
4281 * `jj diff` no longer shows the contents of binary files.
4282
4283 * `jj git` now has an `init` command that initializes a git backed repo.
4284
4285 * New template function `surround(prefix, suffix, content)` is added.
4286
4287 ### Fixed bugs
4288
4289 * Fixed snapshots of symlinks in `gitignore`-d directory.
4290 [#2878](https://github.com/jj-vcs/jj/issues/2878)
4291
4292 * Fixed data loss in dirty working copy when checked-out branch is rebased or
4293 abandoned by Git.
4294 [#2876](https://github.com/jj-vcs/jj/issues/2876)
4295
4296 ### Contributors
4297
4298 Thanks to the people who made this release happen!
4299
4300 * Austin Seipp (@thoughtpolice)
4301 * Benjamin Brittain (@benbrittain)
4302 * Chris Krycho (@chriskrycho)
4303 * Daehyeok Mun (@daehyeok)
4304 * Daniel Ploch (@torquestomp)
4305 * Essien Ita Essien (@essiene)
4306 * Ikko Eltociear Ashimine (@eltociear)
4307 * Ilya Grigoriev (@ilyagr)
4308 * Jonathan Tan (@jonathantanmy)
4309 * jyn (@jyn514)
4310 * Martin von Zweigbergk (@martinvonz)
4311 * Matt Stark (@matts1)
4312 * Michael Pratt (prattmic)
4313 * Philip Metzger (@PhilipMetzger)
4314 * Stephen Jennings (@jennings)
4315 * Valentin Gatien-Baron (@v-gb)
4316 * vwkd (@vwkd)
4317 * Yuya Nishihara (@yuja)
4318
4319 ## [0.13.0] - 2024-01-03
4320
4321 ### Breaking changes
4322
4323 * `jj git fetch` no longer imports new remote branches as local branches. Set
4324 `git.auto-local-branch = true` to restore the old behavior.
4325
4326 ### New features
4327
4328 * Information about new and resolved conflicts is now printed by every command.
4329
4330 * `jj branch` has gained a new `rename` subcommand that allows changing a branch
4331 name atomically. `jj branch help rename` for details.
4332
4333 ### Fixed bugs
4334
4335 * Command aliases can now be loaded from repository config relative to the
4336 current working directory.
4337 [#2414](https://github.com/jj-vcs/jj/issues/2414)
4338
4339 ### Contributors
4340
4341 Thanks to the people who made this release happen!
4342
4343 * Austin Seipp (@thoughtpolice)
4344 * Essien Ita Essien (@essiene)
4345 * Gabriel Scherer (@gasche)
4346 * Ilya Grigoriev (@ilyagr)
4347 * Martin von Zweigbergk (@martinvonz)
4348 * Philip Metzger (@PhilipMetzger)
4349 * Waleed Khan (@arxanas)
4350 * Yuya Nishihara (@yuja)
4351
4352 ## [0.12.0] - 2023-12-05
4353
4354 ### Breaking changes
4355
4356 * The `remote_branches()` revset no longer includes branches exported to the Git
4357 repository (so called Git-tracking branches.)
4358
4359 * `jj branch set` no longer creates a new branch. Use `jj branch create`
4360 instead.
4361
4362 * `jj init --git` in an existing Git repository now errors and exits rather than
4363 creating a second Git store.
4364
4365 ### New features
4366
4367 * `jj workspace add` can now take _multiple_ `--revision` arguments, which will
4368 create a new workspace with its working-copy commit on top of all the parents,
4369 as if you had run `jj new r1 r2 r3 ...`.
4370
4371 * You can now set `git.abandon-unreachable-commits = false` to disable the
4372 usual behavior where commits that became unreachable in the Git repo are
4373 abandoned ([#2504](https://github.com/jj-vcs/jj/pull/2504)).
4374
4375 * `jj new` gained a `--no-edit` option to prevent editing the newly created
4376 commit. For example, `jj new a b --no-edit -m Merge` creates a merge commit
4377 without affecting the working copy.
4378
4379 * `jj rebase` now takes the flag `--skip-empty`, which doesn't copy over commits
4380 that would become empty after a rebase.
4381
4382 * There is a new `jj util gc` command for cleaning up the repository storage.
4383 For now, it simply runs `git gc` on the backing Git repo (when using the Git
4384 backend).
4385
4386 ### Fixed bugs
4387
4388 * Fixed another file conflict resolution issue where `jj status` would disagree
4389 with the actual file content.
4390 [#2654](https://github.com/jj-vcs/jj/issues/2654)
4391
4392 ### Contributors
4393
4394 Thanks to the people who made this release happen!
4395
4396 * Antoine Cezar (@AntoineCezar)
4397 * Anton Bulakh (@necauqua)
4398 * Austin Seipp (@thoughtpolice)
4399 * Benjamin Saunders (@Ralith)
4400 * Carlos Precioso (@cprecioso)
4401 * Chris Krycho (@chriskrycho)
4402 * Ilya Grigoriev (@ilyagr)
4403 * Jason R. Coombs (@jaraco)
4404 * Jesse Somerville (@jessesomerville)
4405 * Łukasz Kurowski (@crackcomm)
4406 * Martin von Zweigbergk (@martinvonz)
4407 * mlcui (@mlcui-corp)
4408 * Philip Metzger (@PhilipMetzger)
4409 * Waleed Khan (@arxanas)
4410 * Yuya Nishihara (@yuja)
4411
4412 ## [0.11.0] - 2023-11-01
4413
4414 ### Breaking changes
4415
4416 * Conflicts are now stored in a different way. Commits written by a new `jj`
4417 binary will not be read correctly by older `jj` binaries. The new model
4418 solves some performance problems with the old model. For example, `jj log`
4419 should be noticeably faster on large repos. You may need to create a new
4420 clone to see the full speedup.
4421
4422 * The `remote_branches()` revset now includes branches exported to the Git
4423 repository (so called Git-tracking branches.) *This change will be reverted
4424 in 0.12.0.*
4425
4426 * Status messages are now printed to stderr.
4427
4428 * `jj config set` now interprets the value as TOML also if it's a valid TOML
4429 array or table. For example, `jj config set --user 'aliases.n' '["new"]'`
4430
4431 * Remote branches now have tracking or non-tracking flags. The
4432 `git.auto-local-branch` setting is applied only to newly fetched remote
4433 branches. Existing remote branches are migrated as follows:
4434
4435 * If local branch exists, the corresponding remote branches are considered
4436 tracking branches.
4437 * Otherwise, the remote branches are non-tracking branches.
4438
4439 If the deduced tracking flags are wrong, use `jj branch track`/`untrack`
4440 commands to fix them up.
4441
4442 * Non-tracking remote branches aren't listed by default. Use `jj branch list
4443 --all` to show all local and remote branches.
4444
4445 * It's not allowed to push branches if non-tracking remote branches of the same
4446 name exist.
4447
4448 * Pushing deleted/moved branches no longer abandons the local commits referenced
4449 by the remote branches.
4450
4451 * `jj git fetch --branch` now requires `glob:` prefix to expand `*` in branch
4452 name.
4453
4454 ### New features
4455
4456 * `jj`'s stable release can now be installed
4457 with [`cargo binstall jj-cli`](https://github.com/cargo-bins/cargo-binstall).
4458
4459 * `jj workspace add` now takes a `--revision` argument.
4460
4461 * `jj workspace forget` can now forget multiple workspaces at once.
4462
4463 * `branches()`/`remote_branches()`/`author()`/`committer()`/`description()`
4464 revsets now support glob matching.
4465
4466 * `jj branch delete`/`forget`/`list`, and `jj git push --branch` now support
4467 [string pattern syntax](docs/revsets.md#string-patterns). The `--glob` option
4468 is deprecated in favor of `glob:` pattern.
4469
4470 * The `branches`/`tags`/`git_refs`/`git_head` template keywords now return a
4471 list of `RefName`s. They were previously pre-formatted strings.
4472
4473 * The new template keywords `local_branches`/`remote_branches` are added to show
4474 only local/remote branches.
4475
4476 * `jj workspace add` now preserves all parents of the old working-copy commit
4477 instead of just the first one.
4478
4479 * `jj rebase -r` gained the ability to rebase a revision `A` onto a descendant
4480 of `A`.
4481
4482 ### Fixed bugs
4483
4484 * Updating the working copy to a commit where a file that's currently ignored
4485 in the working copy no longer leads to a crash
4486 ([#976](https://github.com/jj-vcs/jj/issues/976)).
4487
4488 * Conflicts in executable files can now be resolved just like conflicts in
4489 non-executable files ([#1279](https://github.com/jj-vcs/jj/issues/1279)).
4490
4491 * `jj new --insert-before` and `--insert-after` now respect immutable revisions
4492 ([#2468](https://github.com/jj-vcs/jj/pull/2468)).
4493
4494 ### Contributors
4495
4496 Thanks to the people who made this release happen!
4497
4498 * Antoine Cezar (@AntoineCezar)
4499 * Austin Seipp (@thoughtpolice)
4500 * Benjamin Saunders (@Ralith)
4501 * Gabriel Scherer (@gasche)
4502 * Ilya Grigoriev (@ilyagr)
4503 * Infra (@1011X)
4504 * Isabella Basso (@isinyaaa)
4505 * Martin von Zweigbergk (@martinvonz)
4506 * Tal Pressman (@talpr)
4507 * Waleed Khan (@arxanas)
4508 * Yuya Nishihara (@yuja)
4509
4510 ## [0.10.0] - 2023-10-04
4511
4512 ### Breaking changes
4513
4514 * A default revset-alias function `trunk()` now exists. If you previously
4515 defined
4516 your own `trunk()` alias it will continue to overwrite the built-in one.
4517 Check [revsets.toml](docs/revsets.toml)
4518 and [revsets.md](docs/revsets.md)
4519 to understand how the function can be adapted.
4520
4521 ### New features
4522
4523 * The `ancestors()` revset function now takes an optional `depth` argument
4524 to limit the depth of the ancestor set. For example, use `jj log -r
4525 'ancestors(@, 5)` to view the last 5 commits.
4526
4527 * Support for the Watchman filesystem monitor is now bundled by default. Set
4528 `core.fsmonitor = "watchman"` in your repo to enable.
4529
4530 * You can now configure the set of immutable commits via
4531 `revset-aliases.immutable_heads()`. For example, set it to
4532 `"remote_branches() | tags()"` to prevent rewriting those those. Their
4533 ancestors are implicitly also immutable.
4534
4535 * `jj op log` now supports `--no-graph`.
4536
4537 * Templates now support an additional escape: `\0`. This will output a literal
4538 null byte. This may be useful for e.g.
4539 `jj log -T 'description ++ "\0"' --no-graph` to output descriptions only, but
4540 be able to tell where the boundaries are
4541
4542 * jj now bundles a TUI tool to use as the default diff and merge editors. (The
4543 previous default was `meld`.)
4544
4545 * `jj split` supports the `--interactive` flag. (This is already the default if
4546 no paths are provided.)
4547
4548 * `jj commit` accepts an optional list of paths indicating a subset of files to
4549 include in the first commit
4550
4551 * `jj commit` accepts the `--interactive` flag.
4552
4553 ### Fixed bugs
4554
4555 ### Contributors
4556
4557 Thanks to the people who made this release happen!
4558
4559 * Austin Seipp (@thoughtpolice)
4560 * Emily Kyle Fox (@emilykfox)
4561 * glencbz (@glencbz)
4562 * Hong Shin (@honglooker)
4563 * Ilya Grigoriev (@ilyagr)
4564 * James Sully (@sullyj3)
4565 * Martin von Zweigbergk (@martinvonz)
4566 * Philip Metzger (@PhilipMetzger)
4567 * Ruben Slabbert (@rslabbert)
4568 * Vamsi Avula (@avamsi)
4569 * Waleed Khan (@arxanas)
4570 * Willian Mori (@wmrmrx))
4571 * Yuya Nishihara (@yuja)
4572 * Zachary Dremann (@Dr-Emann)
4573
4574 ## [0.9.0] - 2023-09-06
4575
4576 ### Breaking changes
4577
4578 * The minimum supported Rust version (MSRV) is now 1.71.0.
4579
4580 * The storage format of branches, tags, and git refs has changed. Newly-stored
4581 repository data will no longer be loadable by older binaries.
4582
4583 * The `:` revset operator is deprecated. Use `::` instead. We plan to delete the
4584 `:` form in jj 0.15+.
4585
4586 * The `--allow-large-revsets` flag for `jj rebase` and `jj new` was replaced by
4587 a `all:` before the revset. For example, use `jj rebase -d 'all:foo-'`
4588 instead of `jj rebase --allow-large-revsets -d 'foo-'`.
4589
4590 * The `--allow-large-revsets` flag for `jj rebase` and `jj new` can no longer be
4591 used for allowing duplicate destinations. Include the potential duplicates
4592 in a single expression instead (e.g. `jj new 'all:x|y'`).
4593
4594 * The `push.branch-prefix` option was renamed to `git.push-branch-prefix`.
4595
4596 * The default editor on Windows is now `Notepad` instead of `pico`.
4597
4598 * `jj` will fail attempts to snapshot new files larger than 1MiB by default.
4599 This behavior
4600 can be customized with the `snapshot.max-new-file-size` config option.
4601
4602 * Author and committer signatures now use empty strings to represent unset
4603 names and email addresses. The `author`/`committer` template keywords and
4604 methods also return empty strings.
4605 Older binaries may not warn user when attempting to `git push` commits
4606 with such signatures.
4607
4608 * In revsets, the working-copy or remote symbols (such as `@`, `workspace_id@`,
4609 and `branch@remote`) can no longer be quoted as a unit. If a workspace or
4610 branch name contains whitespace, quote the name like `"branch name"@remote`.
4611 Also, these symbols will not be resolved as revset aliases or function
4612 parameters. For example, `author(foo@)` is now an error, and the revset alias
4613 `'revset-aliases.foo@' = '@'` will be failed to parse.
4614
4615 * The `root` revset symbol has been converted to function `root()`.
4616
4617 * The `..x` revset is now evaluated to `root()..x`, which means the root commit
4618 is no longer included.
4619
4620 * `jj git push` will now push all branches in the range `remote_branches()..@`
4621 instead of only branches pointing to `@` or `@-`.
4622
4623 * It's no longer allowed to create a Git remote named "git". Use `jj git remote
4624 rename` to rename the existing remote.
4625 [#1690](https://github.com/jj-vcs/jj/issues/1690)
4626
4627 * Revset expression like `origin/main` will no longer resolve to a
4628 remote-tracking branch. Use `main@origin` instead.
4629
4630 ### New features
4631
4632 * Default template for `jj log` now does not show irrelevant information
4633 (timestamp, empty, message placeholder etc.) about the root commit.
4634
4635 * Commit templates now support the `root` keyword, which is `true` for the root
4636 commit and `false` for every other commit.
4637
4638 * `jj init --git-repo` now works with bare repositories.
4639
4640 * `jj config edit --user` and `jj config set --user` will now pick a default
4641 config location if no existing file is found, potentially creating parent
4642 directories.
4643
4644 * `jj log` output is now topologically grouped.
4645 [#242](https://github.com/jj-vcs/jj/issues/242)
4646
4647 * `jj git clone` now supports the `--colocate` flag to create the git repo
4648 in the same directory as the jj repo.
4649
4650 * `jj restore` gained a new option `--changes-in` to restore files
4651 from a merge revision's parents. This undoes the changes that `jj diff -r`
4652 would show.
4653
4654 * `jj diff`/`log` now supports `--tool <name>` option to generate diffs by
4655 external program. For configuration, see [the documentation](docs/config.md).
4656 [#1886](https://github.com/jj-vcs/jj/issues/1886)
4657
4658 * A new experimental diff editor `meld-3` is introduced that sets up Meld to
4659 allow you to see both sides of the original diff while editing. This can be
4660 used with `jj split`, `jj move -i`, etc.
4661
4662 * `jj log`/`obslog`/`op log` now supports `--limit N` option to show the first
4663 `N` entries.
4664
4665 * Added the `ui.paginate` option to enable/disable pager usage in commands
4666
4667 * `jj checkout`/`jj describe`/`jj commit`/`jj new`/`jj squash` can take repeated
4668 `-m/--message` arguments. Each passed message will be combined into paragraphs
4669 (separated by a blank line)
4670
4671 * It is now possible to set a default description using the new
4672 `ui.default-description` option, to use when describing changes with an empty
4673 description.
4674
4675 * `jj split` will now leave the description empty on the second part if the
4676 description was empty on the input commit.
4677
4678 * `branches()`/`remote_branches()`/`author()`/`committer()`/`description()`
4679 revsets now support exact matching. For example, `branch(exact:main)`
4680 selects the branch named "main", but not "maint". `description(exact:"")`
4681 selects commits whose description is empty.
4682
4683 * Revsets gained a new function `mine()` that
4684 aliases `author(exact:"your_email")`.
4685
4686 * Added support for `::` and `..` revset operators with both left and right
4687 operands omitted. These expressions are equivalent to `all()` and `~root()`
4688 respectively.
4689
4690 * `jj log` timestamp format now accepts `.utc()` to convert a timestamp to UTC.
4691
4692 * templates now support additional string
4693 methods `.starts_with(x)`, `.ends_with(x)`
4694 `.remove_prefix(x)`, `.remove_suffix(x)`, and `.substr(start, end)`.
4695
4696 * `jj next` and `jj prev` are added, these allow you to traverse the history
4697 in a linear style. For people coming from Sapling and `git-branchles`
4698 see [#2126](https://github.com/jj-vcs/jj/issues/2126) for
4699 further pending improvements.
4700
4701 * `jj diff --stat` has been implemented. It shows a histogram of the changes,
4702 same as `git diff --stat`.
4703 Fixes [#2066](https://github.com/jj-vcs/jj/issues/2066)
4704
4705 * `jj git fetch --all-remotes` has been implemented. It fetches all remotes
4706 instead of just the default remote
4707
4708 ### Fixed bugs
4709
4710 * Fix issues related to .gitignore handling of untracked directories
4711 [#2051](https://github.com/jj-vcs/jj/issues/2051).
4712
4713 * `jj config set --user` and `jj config edit --user` can now be used outside of
4714 any repository.
4715
4716 * SSH authentication could hang when ssh-agent couldn't be reached
4717 [#1970](https://github.com/jj-vcs/jj/issues/1970)
4718
4719 * SSH authentication can now use ed25519 and ed25519-sk keys. They still need
4720 to be password-less.
4721
4722 * Git repository managed by the repo tool can now be detected as a "colocated"
4723 repository.
4724 [#2011](https://github.com/jj-vcs/jj/issues/2011)
4725
4726 ### Contributors
4727
4728 Thanks to the people who made this release happen!
4729
4730 * Alexander Potashev (@aspotashev)
4731 * Anton Bulakh (@necauqua)
4732 * Austin Seipp (@thoughtpolice)
4733 * Benjamin Brittain (@benbrittain)
4734 * Benjamin Saunders (@Ralith)
4735 * Christophe Poucet (@poucet)
4736 * Emily Kyle Fox (@emilykfox)
4737 * Glen Choo (@chooglen)
4738 * Ilya Grigoriev (@ilyagr)
4739 * Kevin Liao (@kevincliao)
4740 * Linus Arver (@listx)
4741 * Martin Clausen (@maacl)
4742 * Martin von Zweigbergk (@martinvonz)
4743 * Matt Freitas-Stavola (@mbStavola)
4744 * Oscar Bonilla (@ob)
4745 * Philip Metzger (@PhilipMetzger)
4746 * Piotr Kufel (@qfel)
4747 * Preston Van Loon (@prestonvanloon)
4748 * Tal Pressman (@talpr)
4749 * Vamsi Avula (@avamsi)
4750 * Vincent Breitmoser (@Valodim)
4751 * Vladimir (@0xdeafbeef)
4752 * Waleed Khan (@arxanas)
4753 * Yuya Nishihara (@yuja)
4754 * Zachary Dremann (@Dr-Emann)
4755
4756 ## [0.8.0] - 2023-07-09
4757
4758 ### Breaking changes
4759
4760 * The `jujutsu` and `jujutsu-lib` crates were renamed to `jj-cli` and `jj-lib`,
4761 respectively.
4762
4763 * The `ui.oplog-relative-timestamps` option has been removed. Use the
4764 `format_time_range()` template alias instead. For details, see
4765 [the documentation](docs/config.md).
4766
4767 * Implicit concatenation of template expressions has been disabled. Use
4768 `++` operator, `concat()`, or `separate()` function instead.
4769 Example: `description ++ "\n"`
4770
4771 * `jj git push` will consider pushing the parent commit only when the
4772 current commit has no content and no description, such as right after
4773 a `jj squash`.
4774
4775 * The minimum supported Rust version (MSRV) is now 1.64.0.
4776
4777 * The `heads()` revset function was split up into two functions. `heads()`
4778 without arguments is now called `visible_heads()`. `heads()` with one argument
4779 is unchanged.
4780
4781 * The `ui.default-revset` config was renamed to `revsets.log`.
4782
4783 * The `jj sparse` command was split up into `jj sparse list` and
4784 `jj sparse set`.
4785
4786 * `jj hide` (alias for `jj abandon`) is no longer available. Use `jj abandon`
4787 instead.
4788
4789 * `jj debug completion`, `jj debug mangen` and `jj debug config-schema` have
4790 been moved from `jj debug` to `jj util`.
4791
4792 * `jj` will no longer parse `br` as a git_ref `refs/heads/br` when a branch `br`
4793 does not exist but the git_ref does (this is rare). Use `br@git` instead.
4794
4795 * `jj git fetch` will no longer import unrelated branches from the underlying
4796 Git repo.
4797
4798 ### New features
4799
4800 * `jj git push --deleted` will remove all locally deleted branches from the
4801 remote.
4802
4803 * `jj restore` without `--from` works correctly even if `@` is a merge
4804 commit.
4805
4806 * `jj rebase` now accepts multiple `-s` and `-b` arguments. Revsets with
4807 multiple commits are allowed with `--allow-large-revsets`.
4808
4809 * `jj git fetch` now supports a `--branch` argument to fetch some of the
4810 branches only.
4811
4812 * `jj config get` command allows retrieving config values for use in scripting.
4813
4814 * `jj config set` command allows simple config edits like
4815 `jj config set --repo user.email "[email protected]"`
4816
4817 * Added `ui.log-word-wrap` option to wrap `jj log`/`obslog`/`op log` content
4818 based on terminal width. [#1043](https://github.com/jj-vcs/jj/issues/1043)
4819
4820 * Nodes in the (text-based) graphical log output now use a `◉` symbol instead
4821 of the letter `o`. The ASCII-based graph styles still use `o`.
4822
4823 * Commands that accept a diff format (`jj diff`, `jj interdiff`, `jj show`,
4824 `jj log`, and `jj obslog`) now accept `--types` to show only the type of file
4825 before and after.
4826
4827 * `jj describe` now supports `--reset-author` for resetting a commit's author
4828 to the configured user. `jj describe` also gained a `--no-edit` option to
4829 avoid opening the editor.
4830
4831 * Added `latest(x[, n])` revset function to select the latest `n` commits.
4832
4833 * Added `conflict()` revset function to select commits with conflicts.
4834
4835 * `jj squash` AKA `jj amend` now accepts a `--message` option to set the
4836 description of the squashed commit on the command-line.
4837
4838 * The progress display on `jj git clone/fetch` now includes the downloaded size.
4839
4840 * The formatter now supports a "default" color that can override another color
4841 defined by a parent style.
4842
4843 * `jj obslog` and `jj log` now show abandoned commits as hidden.
4844
4845 * `jj git fetch` and `jj git push` will now use the single defined remote even
4846 if it is not named "origin".
4847
4848 * `jj git push` now accepts `--branch` and `--change` arguments together.
4849
4850 * `jj git push` now accepts a `-r/--revisions` flag to specify revisions to
4851 push. All branches pointing to any of the specified revisions will be pushed.
4852 The flag can be used together with `--branch` and `--change`.
4853
4854 * `jj` with no subcommand now defaults to `jj log` instead of showing help. This
4855 command can be overridden by setting `ui.default-command`.
4856
4857 * Description tempfiles created via `jj describe` now have the file extension
4858 `.jjdescription` to help external tooling detect a unique filetype.
4859
4860 * The shortest unique change ID prefixes and commit ID prefixes in `jj log` are
4861 now shorter within the default log revset. You can override the default by
4862 setting the `revsets.short-prefixes` config to a different revset.
4863
4864 * The last seen state of branches in the underlying git repo is now presented by
4865 `jj branch list`/`jj log` as a remote called `git` (e.g. `main@git`). They can
4866 also be referenced in revsets. Such branches exist in colocated repos or if
4867 you use `jj git export`.
4868
4869 * The new `jj chmod` command allows setting or removing the executable bit on
4870 paths. Unlike the POSIX `chmod`, it works on Windows, on conflicted files, and
4871 on arbitrary revisions. Bits other than the executable bit are not planned to
4872 be supported.
4873
4874 * `jj sparse set` now accepts an `--edit` flag which brings up the `$EDITOR` to
4875 edit sparse patterns.
4876
4877 * `jj branch list` can now be filtered by revset.
4878
4879 * Initial support for the Watchman filesystem monitor. Set
4880 `core.fsmonitor = "watchman"` in your repo to enable.
4881
4882 ### Fixed bugs
4883
4884 * Modify/delete conflicts now include context lines
4885 [#1244](https://github.com/jj-vcs/jj/issues/1244).
4886
4887 * It is now possible to modify either side of a modify/delete conflict (any
4888 change used to be considered a resolution).
4889
4890 * Fixed a bug that could get partially resolved conflicts to be interpreted
4891 incorrectly.
4892
4893 * `jj git fetch`: when re-adding a remote repository that had been previously
4894 removed, in some situations the remote branches were not recreated.
4895
4896 * `jj git remote rename`: the git remote references were not rewritten with
4897 the new name. If a new remote with the old name and containing the same
4898 branches was added, the remote branches may not be recreated in some cases.
4899
4900 * `jj workspace update-stale` now snapshots the working-copy changes before
4901 updating to the new working-copy commit.
4902
4903 * It is no longer allowed to create branches at the root commit.
4904
4905 * `git checkout` (without using `jj`) in colocated repo no longer abandons
4906 the previously checked-out anonymous branch.
4907 [#1042](https://github.com/jj-vcs/jj/issues/1042).
4908
4909 * `jj git fetch` in a colocated repo now abandons branches deleted on the
4910 remote, just like in a non-colocated repo.
4911 [#864](https://github.com/jj-vcs/jj/issues/864)
4912
4913 * `jj git fetch` can now fetch forgotten branches even if they didn't move on
4914 the remote.
4915 [#1714](https://github.com/jj-vcs/jj/pull/1714)
4916 [#1771](https://github.com/jj-vcs/jj/pull/1771)
4917
4918 * It is now possible to `jj branch forget` deleted branches.
4919 [#1537](https://github.com/jj-vcs/jj/issues/1537)
4920
4921 * Fixed race condition when assigning change id to Git commit. If you've
4922 already had unreachable change ids, run `jj debug reindex`.
4923 [#924](https://github.com/jj-vcs/jj/issues/924)
4924
4925 * Fixed false divergence on racy working-copy snapshots.
4926 [#697](https://github.com/jj-vcs/jj/issues/697),
4927 [#1608](https://github.com/jj-vcs/jj/issues/1608)
4928
4929 * In colocated repos, a bug causing conflicts when undoing branch moves (#922)
4930 has been fixed. Some surprising behaviors related to undoing `jj git push` or
4931 `jj git fetch` remain.
4932
4933 ### Contributors
4934
4935 Thanks to the people who made this release happen!
4936
4937 * Aaron Bull Schaefer (@elasticdog)
4938 * Anton Bulakh (@necauqua)
4939 * Austin Seipp (@thoughtpolice)
4940 * Benjamin Saunders (@Ralith)
4941 * B Wilson (@xelxebar)
4942 * Christophe Poucet (@poucet)
4943 * David Barnett (@dbarnett)
4944 * Glen Choo (@chooglen)
4945 * Grégoire Geis (@71)
4946 * Ilya Grigoriev (@ilyagr)
4947 * Isabella Basso (@isinyaaa)
4948 * Kevin Liao (@kevincliao)
4949 * Martin von Zweigbergk (@martinvonz)
4950 * mlcui (@mlcui-corp)
4951 * Samuel Tardieu (@samueltardieu)
4952 * Tal Pressman (@talpr)
4953 * Vamsi Avula (@avamsi)
4954 * Waleed Khan (@arxanas)
4955 * Yuya Nishihara (@yuja)
4956
4957 ## [0.7.0] - 2023-02-16
4958
4959 ### Breaking changes
4960
4961 * The minimum supported Rust version (MSRV) is now 1.61.0.
4962
4963 * The `jj touchup` command was renamed to `jj diffedit`.
4964
4965 * The `-i` option to `jj restore` was removed in favor of new `--from`/`--to`
4966 options to `jj diffedit`.
4967
4968 * To report the situation when a change id corresponds to multiple visible
4969 commits, `jj log` now prints the change id in red and puts `??` after it.
4970 Previously, it printed the word "divergent".
4971
4972 * `jj log` prefixes commit descriptions with "(empty)" when they contain no
4973 change compared to their parents.
4974
4975 * The `author`/`committer` templates now display both name and email. Use
4976 `author.name()`/`committer.name()` to extract the name.
4977
4978 * Storage of the "HEAD@git" reference changed and can now have conflicts.
4979 Operations written by a new `jj` binary will have a "HEAD@git" reference that
4980 is not visible to older binaries.
4981
4982 * The `description` template keyword is now empty if no description set.
4983 Use `if(description, description, "(no description set)\n")` to get back
4984 the previous behavior.
4985
4986 * The `template.log.graph` and `template.commit_summary` config keys were
4987 renamed to `templates.log` and `templates.commit_summary` respectively.
4988
4989 * If a custom `templates.log` template is set, working-copy commit will
4990 no longer be highlighted automatically. Wrap your template with
4991 `label(if(current_working_copy, "working_copy"), ...)` to label the
4992 working-copy entry.
4993
4994 * The `ui.relative-timestamps` option has been removed. Use the
4995 `format_timestamp()` template alias instead. For details on showing relative
4996 timestamps in `jj log` and `jj show`, see [the documentation](docs/config.md).
4997
4998 * `jj op log` now shows relative timestamps by default. To disable, set
4999 `ui.oplog-relative-timestamps` to `false`.
5000
5001 * The global `--no-commit-working-copy` is now called `--ignore-working-copy`.
5002
5003 * The `diff.format` config option is now called `ui.diff.format`. The old name
5004 is still supported for now.
5005
5006 * `merge-tools.<name>.edit-args` now requires `$left`/`$right` parameters.
5007 The default is `edit-args = ["$left", "$right"]`.
5008
5009 * The builtin `jj update` and `jj up` aliases for `jj checkout` have been
5010 deleted.
5011
5012 * Change IDs are now rendered using letters from the end of the alphabet (from
5013 'z' through 'k') instead of the usual hex digits ('0' through '9' and 'a'
5014 through 'f'). This is to clarify the distinction between change IDs and commit
5015 IDs, and to allow more efficient lookup of unique prefixes. This change
5016 doesn't affect the storage format; existing repositories will remain usable.
5017
5018 ### New features
5019
5020 * The default log format now uses the committer timestamp instead of the author
5021 timestamp.
5022
5023 * `jj log --summary --patch` now shows both summary and diff outputs.
5024
5025 * `jj git push` now accepts multiple `--branch`/`--change` arguments
5026
5027 * `jj config list` command prints values from config and `config edit` opens
5028 the config in an editor.
5029
5030 * `jj debug config-schema` command prints out JSON schema for the jj TOML config
5031 file format.
5032
5033 * `jj resolve --list` can now describe the complexity of conflicts.
5034
5035 * `jj resolve` now notifies the user of remaining conflicts, if any, on success.
5036 This can be prevented by the new `--quiet` option.
5037
5038 * Per-repository configuration is now read from `.jj/repo/config.toml`.
5039
5040 * Background colors, bold text, and underlining are now supported. You can set
5041 e.g. `colors.error = { bg = "red", bold = true, underline = true }` in your
5042 `~/.jjconfig.toml`.
5043
5044 * The `empty` condition in templates is true when the commit makes no change to
5045 the three compared to its parents.
5046
5047 * `branches([needle])` revset function now takes `needle` as an optional
5048 argument and matches just the branches whose name contains `needle`.
5049
5050 * `remote_branches([branch_needle[, remote_needle]])` now takes `branch_needle`
5051 and `remote_needle` as optional arguments and matches just the branches whose
5052 name contains `branch_needle` and remote contains `remote_needle`.
5053
5054 * `jj git fetch` accepts repeated `--remote` arguments.
5055
5056 * Default remotes can be configured for the `jj git fetch` and `jj git push`
5057 operations ("origin" by default) using the `git.fetch` and `git.push`
5058 configuration entries. `git.fetch` can be a list if multiple remotes must
5059 be fetched from.
5060
5061 * `jj duplicate` can now duplicate multiple changes in one go. This preserves
5062 any parent-child relationships between them. For example, the entire tree of
5063 descendants of `abc` can be duplicated with `jj duplicate abc:`.
5064
5065 * `jj log` now highlights the shortest unique prefix of every commit and change
5066 id and shows the rest in gray. To customize the length and style, use the
5067 `format_short_id()` template alias. For details, see
5068 [the documentation](docs/config.md).
5069
5070 * `jj print` was renamed to `jj cat`. `jj print` remains as an alias.
5071
5072 * In content that goes to the terminal, the ANSI escape byte (0x1b) is replaced
5073 by a "␛" character. That prevents them from interfering with the ANSI escapes
5074 jj itself writes.
5075
5076 * `jj workspace root` prints the root path of the current workspace.
5077
5078 * The `[alias]` config section was renamed to `[aliases]`. The old name is
5079 still accepted for backwards compatibility for some time.
5080
5081 * Commands that draw an ASCII graph (`jj log`, `jj op log`, `jj obslog`) now
5082 have different styles available by setting e.g. `ui.graph.style = "curved"`.
5083
5084 * `jj split` accepts creating empty commits when given a path. `jj split .`
5085 inserts an empty commit between the target commit and its children if any,
5086 and `jj split any-non-existent-path` inserts an empty commit between the
5087 target commit and its parents.
5088
5089 * Command arguments to `ui.diff-editor`/`ui.merge-editor` can now be specified
5090 inline without referring to `[merge-tools]` table.
5091
5092 * `jj rebase` now accepts a new `--allow-large-revsets` argument that allows the
5093 revset in the `-d` argument to expand to several revisions. For example,
5094 `jj rebase -s B -d B- -d C` now works even if `B` is a merge commit.
5095
5096 * `jj new` now also accepts a `--allow-large-revsets` argument that behaves
5097 similarly to `jj rebase --allow-large-revsets`.
5098
5099 * `jj new --insert-before` inserts the new commit between the target commit and
5100 its parents.
5101
5102 * `jj new --insert-after` inserts the new commit between the target commit and
5103 its children.
5104
5105 * `author`/`committer` templates now support `.username()`, which leaves out the
5106 domain information of `.email()`.
5107
5108 * It is now possible to change the author format of `jj log` with the
5109 `format_short_signature()` template alias. For details, see
5110 [the documentation](docs/config.md).
5111
5112 * Added support for template aliases. New symbols and functions can be
5113 configured by `template-aliases.<name> = <expression>`. Be aware that
5114 the template syntax isn't documented yet and is likely to change.
5115
5116 * The `ui.diff-instructions` config setting can be set to `false` to inhibit the
5117 creation of the `JJ-INSTRUCTIONS` file as part of diff editing.
5118
5119 ### Fixed bugs
5120
5121 * When sharing the working copy with a Git repo, we used to forget to export
5122 branches to Git when only the working copy had changed. That's now fixed.
5123
5124 * Commit description set by `-m`/`--message` is now terminated with a newline
5125 character, just like descriptions set by editor are.
5126
5127 * The `-R`/`--repository` path must be a valid workspace directory. Its
5128 ancestor directories are no longer searched.
5129
5130 * Fixed a crash when trying to access a commit that's never been imported into
5131 the jj repo from a Git repo. They will now be considered as non-existent if
5132 referenced explicitly instead of crashing.
5133
5134 * Fixed handling of escaped characters in .gitignore (only keep trailing spaces
5135 if escaped properly).
5136
5137 * `jj undo` now works after `jj duplicate`.
5138
5139 * `jj duplicate` followed by `jj rebase` of a tree containing both the original
5140 and duplicate commit no longer crashes. The fix should also resolve any
5141 remaining
5142 instances of https://github.com/jj-vcs/jj/issues/27.
5143
5144 * Fix the output of `jj debug completion --help` by reversing fish and zsh text.
5145
5146 * Fixed edge case in `jj git fetch` when a pruned branch is a prefix of another
5147 branch.
5148
5149 ### Contributors
5150
5151 Thanks to the people who made this release happen!
5152
5153 * Aleksandr Mikhailov (@AM5800)
5154 * Augie Fackler (@durin42)
5155 * Benjamin Saunders (@Ralith)
5156 * Daniel Ploch (@torquestomp)
5157 * Danny Hooper (@hooper)
5158 * David Barnett (@dbarnett)
5159 * Glen Choo (@chooglen)
5160 * Herby Gillot (@herbygillot)
5161 * Ilya Grigoriev (@ilyagr)
5162 * Luke Granger-Brown (@lukegb)
5163 * Martin von Zweigbergk (@martinvonz)
5164 * Michael Forster (@MForster)
5165 * Philip Metzger (@PhilipMetzger)
5166 * Ruben Slabbert (@rslabbert)
5167 * Samuel Tardieu (@samueltardieu)
5168 * Tal Pressman (@talpr)
5169 * Vamsi Avula (@avamsi)
5170 * Waleed Khan (@arxanas)
5171 * Yuya Nishihara (@yuja)
5172
5173 ## [0.6.1] - 2022-12-05
5174
5175 No changes, only changed to a released version of the `thrift` crate dependency.
5176
5177 ## [0.6.0] - 2022-12-05
5178
5179 ### Breaking changes
5180
5181 * Dropped candidates set argument from `description(needle)`, `author(needle)`,
5182 `committer(needle)`, `merges()` revsets. Use `x & description(needle)`
5183 instead.
5184
5185 * Adjusted precedence of revset union/intersection/difference operators.
5186 `x | y & z` is now equivalent to `x | (y & z)`.
5187
5188 * Support for open commits has been dropped. The `ui.enable-open-commits` config
5189 that was added in 0.5.0 is no longer respected. The `jj open/close` commands
5190 have been deleted.
5191
5192 * `jj commit` is now a separate command from `jj close` (which no longer
5193 exists). The behavior has changed slightly. It now always asks for a
5194 description, even if there already was a description set. It now also only
5195 works on the working-copy commit (there's no `-r` argument).
5196
5197 * If a workspace's working-copy commit has been updated from another workspace,
5198 most commands in that workspace will now fail. Use the new
5199 `jj workspace update-stale` command to update the workspace to the new
5200 working-copy commit. (The old behavior was to automatically update the
5201 workspace.)
5202
5203 ### New features
5204
5205 * Commands with long output are paginated.
5206 [#9](https://github.com/jj-vcs/jj/issues/9)
5207
5208 * The new `jj git remote rename` command allows git remotes to be renamed
5209 in-place.
5210
5211 * The new `jj resolve` command allows resolving simple conflicts with
5212 an external 3-way-merge tool.
5213
5214 * `jj git push` will search `@-` for branches to push if `@` has none.
5215
5216 * The new revset function `file(pattern..)` finds commits modifying the
5217 paths specified by the `pattern..`.
5218
5219 * The new revset function `empty()` finds commits modifying no files.
5220
5221 * Added support for revset aliases. New symbols and functions can be configured
5222 by `revset-aliases.<name> = <expression>`.
5223
5224 * It is now possible to specify configuration options on the command line
5225 with the new `--config-toml` global option.
5226
5227 * `jj git` subcommands will prompt for credentials when required for HTTPS
5228 remotes rather than failing.
5229 [#469](https://github.com/jj-vcs/jj/issues/469)
5230
5231 * Branches that have a different target on some remote than they do locally are
5232 now indicated by an asterisk suffix (e.g. `main*`) in `jj log`.
5233 [#254](https://github.com/jj-vcs/jj/issues/254)
5234
5235 * The commit ID was moved from first on the line in `jj log` output to close to
5236 the end. The goal is to encourage users to use the change ID instead, since
5237 that is generally more convenient, and it reduces the risk of creating
5238 divergent commits.
5239
5240 * The username and hostname that appear in the operation log are now
5241 configurable via config options `operation.username` and `operation.hostname`.
5242
5243 * `jj git` subcommands now support credential helpers.
5244
5245 * `jj log` will warn if it appears that the provided path was meant to be a
5246 revset.
5247
5248 * The new global flag `-v/--verbose` will turn on debug logging to give
5249 some additional insight into what is happening behind the scenes.
5250 Note: This is not comprehensively supported by all operations yet.
5251
5252 * `jj log`, `jj show`, and `jj obslog` now all support showing relative
5253 timestamps by setting `ui.relative-timestamps = true` in the config file.
5254
5255 ### Fixed bugs
5256
5257 * A bug in the export of branches to Git caused spurious conflicted branches.
5258 This typically occurred when running in a working copy colocated with Git
5259 (created by running `jj init --git-dir=.`).
5260 [#463](https://github.com/jj-vcs/jj/issues/463)
5261
5262 * When exporting branches to Git, we used to fail if some branches could not be
5263 exported (e.g. because Git doesn't allow a branch called `main` and another
5264 branch called `main/sub`). We now print a warning about these branches
5265 instead.
5266 [#493](https://github.com/jj-vcs/jj/issues/493)
5267
5268 * If you had modified branches in jj and also modified branches in conflicting
5269 ways in Git, `jj git export` used to overwrite the changes you made in Git.
5270 We now print a warning about these branches instead.
5271
5272 * `jj edit root` now fails gracefully.
5273
5274 * `jj git import` used to abandon a commit if Git branches and tags referring
5275 to it were removed. We now keep it if a detached HEAD refers to it.
5276
5277 * `jj git import` no longer crashes when all Git refs are removed.
5278
5279 * Git submodules are now ignored completely. Earlier, files present in the
5280 submodule directory in the working copy would become added (tracked), and
5281 later removed if you checked out another commit. You can now use `git` to
5282 populate the submodule directory and `jj` will leave it alone.
5283
5284 * Git's GC could remove commits that were referenced from jj in some cases. We
5285 are now better at adding Git refs to prevent that.
5286 [#815](https://github.com/jj-vcs/jj/issues/815)
5287
5288 * When the working-copy commit was a merge, `jj status` would list only the
5289 first parent, and the diff summary would be against that parent. The output
5290 now lists all parents and the diff summary is against the auto-merged parents.
5291
5292 ### Contributors
5293
5294 Thanks to the people who made this release happen!
5295
5296 * Martin von Zweigbergk (@martinvonz)
5297 * Benjamin Saunders (@Ralith)
5298 * Yuya Nishihara (@yuja)
5299 * Glen Choo (@chooglen)
5300 * Ilya Grigoriev (@ilyagr)
5301 * Ruben Slabbert (@rslabbert)
5302 * Waleed Khan (@arxanas)
5303 * Sean E. Russell (@xxxserxxx)
5304 * Pranay Sashank (@pranaysashank)
5305 * Luke Granger-Brown (@lukegb)
5306
5307 ## [0.5.1] - 2022-10-17
5308
5309 No changes (just trying to get automated GitHub release to work).
5310
5311 ## [0.5.0] - 2022-10-17
5312
5313 ### Breaking changes
5314
5315 * Open commits are now disabled by default. That means that `jj checkout` will
5316 always create a new change on top of the specified commit and will let you
5317 edit that in the working copy. Set `ui.enable-open-commits = true` to restore
5318 the old behavior and let us know that you did so we know how many people
5319 prefer the workflow with open commits.
5320
5321 * `jj [op] undo` and `jj op restore` used to take the operation to undo or
5322 restore to as an argument to `-o/--operation`. It is now a positional
5323 argument instead (i.e. `jj undo -o abc123` is now written `jj undo abc123`).
5324
5325 * An alias that is not configured as a string list (e.g. `my-status = "status"`
5326 instead of `my-status = ["status"]`) is now an error instead of a warning.
5327
5328 * `jj log` now defaults to showing only commits that are not on any remote
5329 branches (plus their closest commit on the remote branch for context). This
5330 set of commits can be overridden by setting `ui.default-revset`. Use
5331 `jj log -r 'all()'` for the old behavior. Read more about revsets
5332 [here](https://github.com/jj-vcs/jj/blob/main/docs/revsets.md).
5333 [#250](https://github.com/jj-vcs/jj/issues/250)
5334
5335 * `jj new` now always checks out the new commit (used to be only if the parent
5336 was `@`).
5337
5338 * `jj merge` now checks out the new commit. The command now behaves exactly
5339 like `jj new`, except that it requires at least two arguments.
5340
5341 * When the working-copy commit is abandoned by `jj abandon` and the parent
5342 commit is open, a new working-copy commit will be created on top (the open
5343 parent commit used to get checked out).
5344
5345 * `jj branch` now uses subcommands like `jj branch create` and
5346 `jj branch forget` instead of options like `jj branch --forget`.
5347 [#330](https://github.com/jj-vcs/jj/issues/330)
5348
5349 * The [`$NO_COLOR` environment variable](https://no-color.org/) no longer
5350 overrides the `ui.color` configuration if explicitly set.
5351
5352 * `jj edit` has been renamed to `jj touchup`, and `jj edit` is now a new command
5353 with different behavior. The new `jj edit` lets you edit a commit in the
5354 working copy, even if the specified commit is closed.
5355
5356 * `jj git push` no longer aborts if you attempt to push an open commit (but it
5357 now aborts if a commit does not have a description).
5358
5359 * `jj git push` now pushes only branches pointing to the `@` by default. Use
5360 `--all` to push all branches.
5361
5362 * The `checkouts` template keyword is now called `working_copies`, and
5363 `current_checkout` is called `current_working_copy`.
5364
5365 ### New features
5366
5367 * The new `jj interdiff` command compares the changes in commits, ignoring
5368 changes from intervening commits.
5369
5370 * `jj rebase` now accepts a `--branch/-b <revision>` argument, which can be used
5371 instead of `-r` or `-s` to specify which commits to rebase. It will rebase the
5372 whole branch, relative to the destination. The default mode has changed from
5373 `-r @` to `-b @`.
5374
5375 * The new `jj print` command prints the contents of a file in a revision.
5376
5377 * The new `jj git remotes list` command lists the configured remotes and their
5378 URLs.
5379 [#243](https://github.com/jj-vcs/jj/issues/243)
5380
5381 * `jj move` and `jj squash` now lets you limit the set of changes to move by
5382 specifying paths on the command line (in addition to the `--interactive`
5383 mode). For example, use `jj move --to @-- foo` to move the changes to file
5384 (or directory) `foo` in the working copy to the grandparent commit.
5385
5386 * When `jj move/squash/unsquash` abandons the source commit because it became
5387 empty and both the source and the destination commits have non-empty
5388 descriptions, it now asks for a combined description. If either description
5389 was empty, it uses the other without asking.
5390
5391 * `jj split` now lets you specify on the CLI which paths to include in the first
5392 commit. The interactive diff-editing is not started when you do that.
5393
5394 * Sparse checkouts are now supported. In fact, all working copies are now
5395 "sparse", only to different degrees. Use the `jj sparse` command to manage
5396 the paths included in the sparse checkout.
5397
5398 * Configuration is now also read from `~/.jjconfig.toml`.
5399
5400 * The `$JJ_CONFIG` environment variable can now point to a directory. If it
5401 does, all files in the directory will be read, in alphabetical order.
5402
5403 * The `$VISUAL` environment is now respected and overrides `$EDITOR`. The new
5404 `ui.editor` config has higher priority than both of them. There is also a new
5405 `$JJ_EDITOR` environment variable, which has even higher priority than the
5406 config.
5407
5408 * You can now use `-` and `+` in revset symbols. You used to have to quote
5409 branch names like `my-feature` in nested quotes (outer layer for your shell)
5410 like `jj co '"my-feature"'`. The quoting is no longer needed.
5411
5412 * The new revset function `connected(x)` is the same as `x:x`.
5413
5414 * The new revset function `roots(x)` finds commits in the set that are not
5415 descendants of other commits in the set.
5416
5417 * ssh-agent is now detected even if `$SSH_AGENT_PID` is not set (as long as
5418 `$SSH_AUTH_SOCK` is set). This should help at least macOS users where
5419 ssh-agent is launched by default and only `$SSH_AUTH_SOCK` is set.
5420
5421 * When importing from a git, any commits that are no longer referenced on the
5422 git side will now be abandoned on the jj side as well. That means that
5423 `jj git fetch` will now abandon unreferenced commits and rebase any local
5424 changes you had on top.
5425
5426 * `jj git push` gained a `--change <revision>` argument. When that's used, it
5427 will create a branch named after the revision's change ID, so you don't have
5428 to create a branch yourself. By default, the branch name will start with
5429 `push-`, but this can be overridden by the `push.branch-prefix` config
5430 setting.
5431
5432 * `jj git push` now aborts if you attempt to push a commit without a
5433 description or with the placeholder "(no name/email configured)" values for
5434 author/committer.
5435
5436 * Diff editor command arguments can now be specified by config file.
5437 Example:
5438
5439 [merge-tools.kdiff3]
5440 program = "kdiff3"
5441 edit-args = ["--merge", "--cs", "CreateBakFiles=0"]
5442
5443 * `jj branch` can accept any number of branches to update, rather than just one.
5444
5445 * Aliases can now call other aliases.
5446
5447 * `jj log` now accepts a `--reversed` option, which will show older commits
5448 first.
5449
5450 * `jj log` now accepts file paths.
5451
5452 * `jj obslog` now accepts `-p`/`--patch` option, which will show the diff
5453 compared to the previous version of the change.
5454
5455 * The "(no name/email configured)" placeholder value for name/email will now be
5456 replaced if once you modify a commit after having configured your name/email.
5457
5458 * Color setting can now be overridden by `--color=always|never|auto` option.
5459
5460 * `jj checkout` now lets you specify a description with `--message/-m`.
5461
5462 * `jj new` can now be used for creating merge commits. If you pass more than
5463 one argument to it, the new commit will have all of them as parents.
5464
5465 ### Fixed bugs
5466
5467 * When rebasing a conflict where one side modified a file and the other side
5468 deleted it, we no longer automatically resolve it in favor of the modified
5469 content (this was a regression from commit c0ae4b16e8c4).
5470
5471 * Errors are now printed to stderr (they used to be printed to stdout).
5472
5473 * Updating the working copy to a commit where a file's executable bit changed
5474 but the contents was the same used to lead to a crash. That has now been
5475 fixed.
5476
5477 * If one side of a merge modified a directory and the other side deleted it, it
5478 used to be considered a conflict. The same was true if both sides added a
5479 directory with different files in. They are now merged as if the missing
5480 directory had been empty.
5481
5482 * When using `jj move` to move part of a commit into an ancestor, any branches
5483 pointing to the source commit used to be left on a hidden intermediate commit.
5484 They are now correctly updated.
5485
5486 * `jj untrack` now requires at least one path (allowing no arguments was a UX
5487 bug).
5488
5489 * `jj rebase` now requires at least one destination (allowing no arguments was a
5490 UX bug).
5491
5492 * `jj restore --to <rev>` now restores from the working copy (it used to restore
5493 from the working copy's parent).
5494
5495 * You now get a proper error message instead of a crash when `$EDITOR` doesn't
5496 exist or exits with an error.
5497
5498 * Global arguments, such as `--at-op=<operation>`, can now be passed before
5499 an alias.
5500
5501 * Fixed relative path to the current directory in output to be `.` instead of
5502 empty string.
5503
5504 * When adding a new workspace, the parent of the current workspace's current
5505 checkout will be checked out. That was always the intent, but the root commit
5506 was accidentally checked out instead.
5507
5508 * When checking out a commit, the previous commit is no longer abandoned if it
5509 has a non-empty description.
5510
5511 * All commands now consistently snapshot the working copy (it was missing from
5512 e.g. `jj undo` and `jj merge` before).
5513
5514 ## [0.4.0] - 2022-04-02
5515
5516 ### Breaking changes
5517
5518 * Dropped support for config in `~/.jjconfig`. Your configuration is now read
5519 from `<config dir>/jj/config.toml`, where `<config dir>` is
5520 `${XDG_CONFIG_HOME}` or `~/.config/` on Linux,
5521 `~/Library/Application Support/` on macOS, and `~\AppData\Roaming\` on
5522 Windows.
5523
5524 ### New features
5525
5526 * You can now set an environment variable called `$JJ_CONFIG` to a path to a
5527 config file. That will then be read instead of your regular config file. This
5528 is mostly intended for testing and scripts.
5529
5530 * The [standard `$NO_COLOR` environment variable](https://no-color.org/) is now
5531 respected.
5532
5533 * `jj new` now lets you specify a description with `--message/-m`.
5534
5535 * When you check out a commit, the old commit no longer automatically gets
5536 abandoned if it's empty and has descendants, it only gets abandoned if it's
5537 empty and does not have descendants.
5538
5539 * When undoing an earlier operation, any new commits on top of commits from the
5540 undone operation will be rebased away. For example, let's say you rebase
5541 commit A so it becomes a new commit A', and then you create commit B on top of
5542 A'. If you now undo the rebase operation, commit B will be rebased to be on
5543 top of A instead. The same logic is used if the repo was modified by
5544 concurrent operations (so if one operation added B on top of A, and one
5545 operation rebased A as A', then B would be automatically rebased on top of
5546 A'). See #111 for more examples.
5547 [#111](https://github.com/jj-vcs/jj/issues/111)
5548
5549 * `jj log` now accepts `-p`/`--patch` option.
5550
5551 ### Fixed bugs
5552
5553 * Fixed crash on `jj init --git-repo=.` (it almost always crashed).
5554
5555 * When sharing the working copy with a Git repo, the automatic importing and
5556 exporting (sometimes?) didn't happen on Windows.
5557
5558 ## [0.3.3] - 2022-03-16
5559
5560 No changes, only trying to get the automated build to work.
5561
5562 ## [0.3.2] - 2022-03-16
5563
5564 No changes, only trying to get the automated build to work.
5565
5566 ## [0.3.1] - 2022-03-13
5567
5568 ### Fixed bugs
5569
5570 - Fixed crash when `core.excludesFile` pointed to nonexistent file, and made
5571 leading `~/` in that config expand to `$HOME/`
5572 [#131](https://github.com/jj-vcs/jj/issues/131)
5573
5574 ## [0.3.0] - 2022-03-12
5575
5576 Last release before this changelog started.
5577
5578 [unreleased]: https://github.com/jj-vcs/jj/compare/v0.45.1...HEAD
5579 [0.45.1]: https://github.com/jj-vcs/jj/compare/v0.45.0...v0.45.1
5580 [0.45.0]: https://github.com/jj-vcs/jj/compare/v0.44.0...v0.45.0
5581 [0.44.0]: https://github.com/jj-vcs/jj/compare/v0.43.0...v0.44.0
5582 [0.43.0]: https://github.com/jj-vcs/jj/compare/v0.42.0...v0.43.0
5583 [0.42.0]: https://github.com/jj-vcs/jj/compare/v0.41.0...v0.42.0
5584 [0.41.0]: https://github.com/jj-vcs/jj/compare/v0.40.0...v0.41.0
5585 [0.40.0]: https://github.com/jj-vcs/jj/compare/v0.39.0...v0.40.0
5586 [0.39.0]: https://github.com/jj-vcs/jj/compare/v0.38.0...v0.39.0
5587 [0.38.0]: https://github.com/jj-vcs/jj/compare/v0.37.0...v0.38.0
5588 [0.37.0]: https://github.com/jj-vcs/jj/compare/v0.36.0...v0.37.0
5589 [0.36.0]: https://github.com/jj-vcs/jj/compare/v0.35.0...v0.36.0
5590 [0.35.0]: https://github.com/jj-vcs/jj/compare/v0.34.0...v0.35.0
5591 [0.34.0]: https://github.com/jj-vcs/jj/compare/v0.33.0...v0.34.0
5592 [0.33.0]: https://github.com/jj-vcs/jj/compare/v0.32.0...v0.33.0
5593 [0.32.0]: https://github.com/jj-vcs/jj/compare/v0.31.0...v0.32.0
5594 [0.31.0]: https://github.com/jj-vcs/jj/compare/v0.30.0...v0.31.0
5595 [0.30.0]: https://github.com/jj-vcs/jj/compare/v0.29.0...v0.30.0
5596 [0.29.0]: https://github.com/jj-vcs/jj/compare/v0.28.2...v0.29.0
5597 [0.28.2]: https://github.com/jj-vcs/jj/compare/v0.28.1...v0.28.2
5598 [0.28.1]: https://github.com/jj-vcs/jj/compare/v0.28.0...v0.28.1
5599 [0.28.0]: https://github.com/jj-vcs/jj/compare/v0.27.0...v0.28.0
5600 [0.27.0]: https://github.com/jj-vcs/jj/compare/v0.26.0...v0.27.0
5601 [0.26.0]: https://github.com/jj-vcs/jj/compare/v0.25.0...v0.26.0
5602 [0.25.0]: https://github.com/jj-vcs/jj/compare/v0.24.0...v0.25.0
5603 [0.24.0]: https://github.com/jj-vcs/jj/compare/v0.23.0...v0.24.0
5604 [0.23.0]: https://github.com/jj-vcs/jj/compare/v0.22.0...v0.23.0
5605 [0.22.0]: https://github.com/jj-vcs/jj/compare/v0.21.0...v0.22.0
5606 [0.21.0]: https://github.com/jj-vcs/jj/compare/v0.20.0...v0.21.0
5607 [0.20.0]: https://github.com/jj-vcs/jj/compare/v0.19.0...v0.20.0
5608 [0.19.0]: https://github.com/jj-vcs/jj/compare/v0.18.0...v0.19.0
5609 [0.18.0]: https://github.com/jj-vcs/jj/compare/v0.17.1...v0.18.0
5610 [0.17.1]: https://github.com/jj-vcs/jj/compare/v0.17.0...v0.17.1
5611 [0.17.0]: https://github.com/jj-vcs/jj/compare/v0.16.0...v0.17.0
5612 [0.16.0]: https://github.com/jj-vcs/jj/compare/v0.15.1...v0.16.0
5613 [0.15.1]: https://github.com/jj-vcs/jj/compare/v0.15.0...v0.15.1
5614 [0.15.0]: https://github.com/jj-vcs/jj/compare/v0.14.0...v0.15.0
5615 [0.14.0]: https://github.com/jj-vcs/jj/compare/v0.13.0...v0.14.0
5616 [0.13.0]: https://github.com/jj-vcs/jj/compare/v0.12.0...v0.13.0
5617 [0.12.0]: https://github.com/jj-vcs/jj/compare/v0.11.0...v0.12.0
5618 [0.11.0]: https://github.com/jj-vcs/jj/compare/v0.10.0...v0.11.0
5619 [0.10.0]: https://github.com/jj-vcs/jj/compare/v0.9.0...v0.10.0
5620 [0.9.0]: https://github.com/jj-vcs/jj/compare/v0.8.0...v0.9.0
5621 [0.8.0]: https://github.com/jj-vcs/jj/compare/v0.7.0...v0.8.0
5622 [0.7.0]: https://github.com/jj-vcs/jj/compare/v0.6.1...v0.7.0
5623 [0.6.1]: https://github.com/jj-vcs/jj/compare/v0.6.0...v0.6.1
5624 [0.6.0]: https://github.com/jj-vcs/jj/compare/v0.5.1...v0.6.0
5625 [0.5.1]: https://github.com/jj-vcs/jj/compare/v0.5.0...v0.5.1
5626 [0.5.0]: https://github.com/jj-vcs/jj/compare/v0.4.0...v0.5.0
5627 [0.4.0]: https://github.com/jj-vcs/jj/compare/v0.3.3...v0.4.0
5628 [0.3.3]: https://github.com/jj-vcs/jj/compare/v0.3.2...v0.3.3
5629 [0.3.2]: https://github.com/jj-vcs/jj/compare/v0.3.1...v0.3.2
5630 [0.3.1]: https://github.com/jj-vcs/jj/compare/v0.3.0...v0.3.1
5631 [0.3.0]: https://github.com/jj-vcs/jj/releases/tag/v0.3.0