Skip to content

Commit

Permalink
docs: add tutorial on how to use :builtin diff editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Cretezy committed Apr 30, 2024
1 parent e54e83b commit 183aac9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,14 @@ 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, you can configure
[`ui.diff-editor`](config.md#editing-diffs) instead. Modify the right side of
the diff to have the desired end state in "ABC" by removing the "D" line. Then
save the changes and close Meld. If we look at the diff of the second commit, we
now see that all three lines got capitalized:
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 double
clicking or using space. Once complete, press `c` to confirm changes, or `q` to
exit without saving. If we look at the diff of the second commit, we now see
that all three lines got capitalized:
```shell
$ jj diff -r @-
Expand Down

0 comments on commit 183aac9

Please sign in to comment.