summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-08-12 17:17:32 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-08-12 17:24:05 +1000
commit83d642b74f1aada9cc0da5524b6021feb80e5766 (patch)
tree6ab194ea786e912e1b6296d57ec0378fb9bb4da3 /README.md
parentb1bc437d1b91b33c767a31be15f8f41e90c4d8f0 (diff)
Add demo for diffing two commits
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index d4915217e..7ba793631 100644
--- a/README.md
+++ b/README.md
@@ -150,6 +150,12 @@ When viewing the commit graph in an enlarged window (use `+` and `_` to cycle wi
![commit_graph](../assets/demo/commit_graph-compressed.gif)
+### Compare two commits
+
+If you press `shift+w` on a commit (or branch/ref) a menu will open that allows you to mark that commit so that any other commit you select will be diffed against it. Once you've selected the second commit, you'll see the diff in the main view and if you press `<enter>` you'll see the files of the diff. You can press `shift+w` to view the diff menu again to see options like reversing the diff direction or exiting diff mode. You can also exit diff mode by pressing `<escape>`.
+
+![diff_commits](../assets/demo/diff_commits-compressed.gif)
+
## Tutorials
[<img src="https://i.imgur.com/sVEktDn.png">](https://youtu.be/CPLdltN7wgE)