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

docs: mention snapshot.auto-track in config.md too

I forgot to add the `snapshot.auto-track` config option to `config.md`
when I added it. This patch copies it from `working-copy.md` and
modifies it slightly.
This commit is contained in:
Martin von Zweigbergk 2024-10-04 11:02:59 -07:00 committed by Martin von Zweigbergk
parent 266b804326
commit 801b243678
2 changed files with 14 additions and 1 deletions

View file

@ -954,6 +954,19 @@ using `jj debug watchman status`.
## Snapshot settings
### Paths to automatically track
All new files in the working copy that don't match the ignore patterns are
tracked by default. You can set the `snapshot.auto-track` to set which paths
get automatically tracked when they're added to the working copy. See the
[fileset documentation](filesets.md) for the syntax. Files with paths matching
[ignore files](working-copy.md#ignored-files) are never tracked automatically.
You can use `jj file untrack` to untrack a file while keeping it in the working
copy. However, first [ignore](working-copy.md#ignored-files) them or remove them
from the `snapshot.auto-track` patterns; otherwise they will be immediately
tracked again.
### Maximum size for new files
By default, as an anti-footgun measure, `jj` will refuse to add new files to the

View file

@ -20,7 +20,7 @@ working copy, it will implicitly be untracked.
The `snapshot.auto-track` config option controls which paths get automatically
tracked when they're added to the working copy. See the
[fileset documentation](filesets.md) for the syntax. Files with paths matching
[ignore files](#ignored-files) are never tracked automatically
[ignore files](#ignored-files) are never tracked automatically.
You can use `jj file untrack` to untrack a file while keeping it in the working
copy. However, first [ignore](#ignored-files) them or remove them from the