From 588389e89fdf9da961b53618db672c1c85ea695b Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Wed, 15 Dec 2021 16:56:45 -0800 Subject: [PATCH] docs: add pointer to new revset doc in tutorial (#46) --- docs/tutorial.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index 7d1f415b7..133fc5859 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -150,11 +150,12 @@ change ids because they stay the same when the commit is rewritten. By default, `jj log` lists all revisions (commits) in the repo that have not been rewritten (roughly speaking). We can use the `-r` flag to restrict which -revisions we want to list. The flag accepts a "revset", which is an expression -in a simple language for specifying revision. For example, `@` refers to the -working copy commit, `root` refers to the root commit, `branches()` refers to -all commits pointed to by branches. We can combine expression with `|` for -union, `&` for intersection and `-` for difference. For example: +revisions we want to list. The flag accepts a ["revset"](revsets.md), which is +an expression in a simple language for specifying revisions. For example, `@` +refers to the working copy commit, `root` refers to the root commit, +`branches()` refers to all commits pointed to by branches. We can combine +expressions with `|` for union, `&` for intersection and `~` for difference. +For example: ```shell script $ jj log -r '@ | root | branches()' @ 192b456b024b f39aeb1a0200 martinvonz@google.com 2021-05-23 23:10:27.000 -07:00