ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: add some documentation for jj sparse, including examples

This commit is contained in:
Martin von Zweigbergk 2023-05-22 06:36:23 -07:00 committed by Martin von Zweigbergk
parent b6691a1d23
commit f1e2849c23

View file

@ -877,10 +877,18 @@ enum SparseArgs {
}
/// 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)]
struct SparseListArgs {}
/// 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)]
struct SparseSetArgs {
/// Patterns to add to the working copy