From c08fab60da3f824080ef1c88c8e8a23fb9ab5be5 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 3 Sep 2023 13:41:15 +0900 Subject: [PATCH] docs: update description of @ revset expression, mention name@remote syntax Since I'm going to remove the root symbol, it doesn't make sense to leave @ in the priority list. --- docs/revsets.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/revsets.md b/docs/revsets.md index 353a05ae5..5014a7d8f 100644 --- a/docs/revsets.md +++ b/docs/revsets.md @@ -21,8 +21,9 @@ ID or a Git ref pointing to them). The symbol `root` refers to the virtual commit that is the oldest ancestor of all other commits. -The symbol `@` refers to the working copy commit in the current workspace. Use -`@` to refer to the working-copy commit in another workspace. +The `@` expression refers to the working copy commit in the current workspace. +Use `@` to refer to the working-copy commit in another +workspace. Use `@` to refer to a remote-tracking branch. A full commit ID refers to a single commit. A unique prefix of the full commit ID can also be used. It is an error to use a non-unique prefix. @@ -40,12 +41,11 @@ Taking shell quoting into account, you may need to use something like Jujutsu attempts to resolve a symbol in the following order: -1. `@` -2. `root` -3. Tag name -4. Branch name -5. Git ref -6. Commit ID or change ID +1. `root` +2. Tag name +3. Branch name +4. Git ref +5. Commit ID or change ID ## Operators