Debian Codegraph @

CHANGELOG.md

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