Skip to content

Commit

Permalink
config docs: document valid fsmonitor values
Browse files Browse the repository at this point in the history
I was wondering how to disable the watchman in a repo if it's enabled in
the user config.
  • Loading branch information
ilyagr committed Apr 11, 2024
1 parent 37be542 commit 383711f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cli/src/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@
}
}
},
"core": {
"type": "object",
"properties": {
"fsmonitor": {
"type": "string",
"enum": ["none", "watchman"],
"description": "Whether to use an external filesystem monitor, useful for large repos"
}
}
},
"colors": {
"type": "object",
"description": "Mapping from jj formatter labels to colors",
Expand Down
3 changes: 3 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,9 @@ In large repositories, it may be beneficial to use a "filesystem monitor" to
track changes to the working copy. This allows `jj` to take working copy
snapshots without having to rescan the entire working copy.

This is governed by the `core.fsmonitor` option. Currently, the valid values are
`"none"` or `"watchman"`.

### Watchman

To configure the Watchman filesystem monitor, set
Expand Down

0 comments on commit 383711f

Please sign in to comment.