mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-01 00:50:57 +00:00
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:
parent
506392703b
commit
f4fb8f18a7
2 changed files with 40 additions and 34 deletions
|
@ -25,7 +25,11 @@ use crate::ui::Ui;
|
|||
|
||||
/// 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
|
||||
/// D D @
|
||||
|
@ -35,8 +39,8 @@ use crate::ui::Ui;
|
|||
/// B B
|
||||
/// ```
|
||||
///
|
||||
/// If `--edit` is passed, it will move you directly to the child
|
||||
/// revision.
|
||||
/// If `--edit` is passed, the working copy revision is changed to the child of
|
||||
/// the current working copy revision.
|
||||
///
|
||||
/// ```text
|
||||
/// D D
|
||||
|
@ -46,10 +50,9 @@ use crate::ui::Ui;
|
|||
/// B => @
|
||||
/// | |
|
||||
/// @ A
|
||||
///
|
||||
/// ```
|
||||
/// If your working-copy commit already has visible children, then `--edit` is
|
||||
/// implied.
|
||||
/// ```
|
||||
#[derive(clap::Args, Clone, Debug)]
|
||||
#[command(verbatim_doc_comment)]
|
||||
pub(crate) struct NextArgs {
|
||||
|
|
|
@ -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
|
||||
|
||||
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
|
||||
D D @
|
||||
|
@ -1158,8 +1162,8 @@ C @ => C
|
|||
B B
|
||||
```
|
||||
|
||||
If `--edit` is passed, it will move you directly to the child
|
||||
revision.
|
||||
If `--edit` is passed, the working copy revision is changed to the child of
|
||||
the current working copy revision.
|
||||
|
||||
```text
|
||||
D D
|
||||
|
@ -1169,10 +1173,9 @@ C C
|
|||
B => @
|
||||
| |
|
||||
@ A
|
||||
|
||||
```
|
||||
If your working-copy commit already has visible children, then `--edit` is
|
||||
implied.
|
||||
```
|
||||
|
||||
**Usage:** `jj next [OPTIONS] [OFFSET]`
|
||||
|
||||
|
|
Loading…
Reference in a new issue