mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-11 23:08:03 +00:00
cli: add some documentation for jj sparse
, including examples
This commit is contained in:
parent
b6691a1d23
commit
f1e2849c23
1 changed files with 8 additions and 0 deletions
|
@ -877,10 +877,18 @@ enum SparseArgs {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// List the patterns that are currently present in the working copy
|
/// List the patterns that are currently present in the working copy
|
||||||
|
///
|
||||||
|
/// By default, a newly cloned or initialized repo will have have a pattern
|
||||||
|
/// matching all files from the repo root. That pattern is rendered as `.` (a
|
||||||
|
/// single period).
|
||||||
#[derive(clap::Args, Clone, Debug)]
|
#[derive(clap::Args, Clone, Debug)]
|
||||||
struct SparseListArgs {}
|
struct SparseListArgs {}
|
||||||
|
|
||||||
/// Update the patterns that are present in the working copy
|
/// Update the patterns that are present in the working copy
|
||||||
|
///
|
||||||
|
/// For example, if all you need is the `README.md` and the `lib/`
|
||||||
|
/// directory, use `jj sparse set --clear --add README.md --add lib`.
|
||||||
|
/// If you no longer need the `lib` directory, use `jj sparse set --remove lib`.
|
||||||
#[derive(clap::Args, Clone, Debug)]
|
#[derive(clap::Args, Clone, Debug)]
|
||||||
struct SparseSetArgs {
|
struct SparseSetArgs {
|
||||||
/// Patterns to add to the working copy
|
/// Patterns to add to the working copy
|
||||||
|
|
Loading…
Reference in a new issue