Skip to content

Commit

Permalink
tutorial: edits to the diff editor explanation
Browse files Browse the repository at this point in the history
Follows up on jj-vcs#3599. I also moved the discussion of other diff editors to a
footnote, as it didn't seem to fit well into the flow of the text.
  • Loading branch information
ilyagr committed May 5, 2024
1 parent f1fd1d8 commit d43a9eb
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,17 @@ Working copy now at: mrxqplyk 52a6c7fd ABCD
Parent commit : kwtuwqnm 643061ac ABC
```
That will bring up the built-in diff editor with a diff of the changes in the
"ABCD" commit. If you prefer another diff editor, such as
[Meld](https://meldmerge.org), you can configure
[`ui.diff-editor`](config.md#editing-diffs) instead. Expand the file by
clicking on `(+)` or with right arrow, then select the sections/line to include
by clicking or using space. Once complete, press `c` to confirm changes, or `q`
to exit without saving. We can also click on the menu items to see more
options.
That will bring up the built-in diff editor[^alternative_diff_editors] with a
diff of the changes in the "ABCD" commit. Expand the file by clicking on `(+)`
or with right arrow, then select the sections/line to include by clicking or
using space. Once complete, press `c` to confirm changes, or `q` to exit without
saving. You can also use the mouse to click on the menu items to see more
options (keyboard navigation is currently limited).
[^alternative_diff_editors]: There are many other diff editors you could use.
For example, use `jj squash -i --tool meld` to use [Meld](https://meldmerge.org)
if you have it installed and in the PATH. You can configure the default with the
[`ui.diff-editor` option](config.md#editing-diffs) instead.
If we look at the diff of the second commit, we now see
that all three lines got capitalized:
Expand Down

0 comments on commit d43a9eb

Please sign in to comment.