Update the documentation for jj next

This is to match the recent changes made to the docs for `jj prev`.
This commit is contained in:
Evan Mesterhazy 2024-04-05 15:05:45 -04:00 committed by Evan Mesterhazy
parent 506392703b
commit f4fb8f18a7
2 changed files with 40 additions and 34 deletions

View file

@ -25,7 +25,11 @@ use crate::ui::Ui;
/// Move the working-copy commit to the child revision /// Move the working-copy commit to the child revision
/// ///
/// The command moves you to the next child in a linear fashion. /// The command creates a new empty working copy revision that is the child of a
/// descendant `offset` revisions ahead of the parent of the current working
/// copy.
///
/// For example, when the offset is 1:
/// ///
/// ```text /// ```text
/// D D @ /// D D @
@ -35,8 +39,8 @@ use crate::ui::Ui;
/// B B /// B B
/// ``` /// ```
/// ///
/// If `--edit` is passed, it will move you directly to the child /// If `--edit` is passed, the working copy revision is changed to the child of
/// revision. /// the current working copy revision.
/// ///
/// ```text /// ```text
/// D D /// D D
@ -46,10 +50,9 @@ use crate::ui::Ui;
/// B => @ /// B => @
/// | | /// | |
/// @ A /// @ A
/// /// ```
/// If your working-copy commit already has visible children, then `--edit` is /// If your working-copy commit already has visible children, then `--edit` is
/// implied. /// implied.
/// ```
#[derive(clap::Args, Clone, Debug)] #[derive(clap::Args, Clone, Debug)]
#[command(verbatim_doc_comment)] #[command(verbatim_doc_comment)]
pub(crate) struct NextArgs { pub(crate) struct NextArgs {

View file

@ -1148,7 +1148,11 @@ For more information, see https://github.com/martinvonz/jj/blob/main/docs/workin
Move the working-copy commit to the child revision Move the working-copy commit to the child revision
The command moves you to the next child in a linear fashion. The command creates a new empty working copy revision that is the child of a
descendant `offset` revisions ahead of the parent of the current working
copy.
For example, when the offset is 1:
```text ```text
D D @ D D @
@ -1158,8 +1162,8 @@ C @ => C
B B B B
``` ```
If `--edit` is passed, it will move you directly to the child If `--edit` is passed, the working copy revision is changed to the child of
revision. the current working copy revision.
```text ```text
D D D D
@ -1169,10 +1173,9 @@ C C
B => @ B => @
| | | |
@ A @ A
```
If your working-copy commit already has visible children, then `--edit` is If your working-copy commit already has visible children, then `--edit` is
implied. implied.
```
**Usage:** `jj next [OPTIONS] [OFFSET]` **Usage:** `jj next [OPTIONS] [OFFSET]`