As jj sparse: the workspace holds the files its glob patterns match, from the repository root. Changing them snapshots the files first, so your edits stay in the change, then brings the files newly matched and removes those matched no more.
Usage
af sparse [OPTIONS] <COMMAND>Commands
| Command | What it does |
|---|---|
list |
List the workspace’s patterns |
set |
Add or remove patterns |
reset |
Hold every file again |
Global options
Every af command also takes the global options.
Examples
af sparse list
af sparse set --add 'docs/**' --remove 'tests/**'
af sparse resetaf sparse list
List the workspace’s patterns
Usage
af sparse list [OPTIONS]Global options
Every af command also takes the global options.
af sparse set
Add or remove patterns
Usage
af sparse set [OPTIONS]Options
-
--add <ADD>Glob to add, from the repository root, such as
crates/foo/**; repeat for more -
--remove <REMOVE>Glob to remove; repeat for more
-
--clearStart from no patterns before adding
Global options
Every af command also takes the global options.
af sparse reset
Hold every file again
Usage
af sparse reset [OPTIONS]Global options
Every af command also takes the global options.