| 1 |
{ |
| 2 |
"$schema": "http://json-schema.org/draft-04/schema", |
| 3 |
"$comment": "`taplo` and the corresponding VS Code plugins only support version draft-04 of JSON Schema, see <https://taplo.tamasfe.dev/configuration/developing-schemas.html>. draft-07 is mostly compatible with it, newer versions may not be.", |
| 4 |
"title": "Jujutsu config", |
| 5 |
"type": "object", |
| 6 |
"description": "User configuration for Jujutsu VCS. See https://docs.jj-vcs.dev/latest/config/ for details", |
| 7 |
"properties": { |
| 8 |
"user": { |
| 9 |
"type": "object", |
| 10 |
"description": "Settings about the user", |
| 11 |
"properties": { |
| 12 |
"name": { |
| 13 |
"type": "string", |
| 14 |
"description": "Full name of the user, used in commits" |
| 15 |
}, |
| 16 |
"email": { |
| 17 |
"type": "string", |
| 18 |
"description": "User's email address, used in commits", |
| 19 |
"format": "email" |
| 20 |
} |
| 21 |
} |
| 22 |
}, |
| 23 |
"operation": { |
| 24 |
"type": "object", |
| 25 |
"description": "Metadata to be attached to jj operations (shown in jj op log)", |
| 26 |
"properties": { |
| 27 |
"hostname": { |
| 28 |
"type": "string", |
| 29 |
"format": "hostname" |
| 30 |
}, |
| 31 |
"username": { |
| 32 |
"type": "string" |
| 33 |
} |
| 34 |
} |
| 35 |
}, |
| 36 |
"ui": { |
| 37 |
"type": "object", |
| 38 |
"description": "UI settings", |
| 39 |
"definitions": { |
| 40 |
"conflict-marker-style": { |
| 41 |
"type": "string", |
| 42 |
"description": "Conflict marker style to use when materializing conflicts in the working copy", |
| 43 |
"enum": [ |
| 44 |
"diff", |
| 45 |
"diff-experimental", |
| 46 |
"snapshot", |
| 47 |
"git" |
| 48 |
], |
| 49 |
"default": "diff" |
| 50 |
}, |
| 51 |
"command": { |
| 52 |
"type": [ |
| 53 |
"string", |
| 54 |
"array" |
| 55 |
], |
| 56 |
"minItems": 1, |
| 57 |
"items": { |
| 58 |
"type": "string" |
| 59 |
} |
| 60 |
}, |
| 61 |
"command-env": { |
| 62 |
"type": "object", |
| 63 |
"properties": { |
| 64 |
"command": { |
| 65 |
"type": "array", |
| 66 |
"minItems": 1, |
| 67 |
"items": { |
| 68 |
"type": "string" |
| 69 |
} |
| 70 |
}, |
| 71 |
"env": { |
| 72 |
"type": "object" |
| 73 |
} |
| 74 |
}, |
| 75 |
"required": [ |
| 76 |
"command", |
| 77 |
"env" |
| 78 |
] |
| 79 |
} |
| 80 |
}, |
| 81 |
"properties": { |
| 82 |
"default-command": { |
| 83 |
"description": "Default command to run when no explicit command is given", |
| 84 |
"default": "log", |
| 85 |
"oneOf": [ |
| 86 |
{ |
| 87 |
"type": "string" |
| 88 |
}, |
| 89 |
{ |
| 90 |
"type": "array", |
| 91 |
"items": { |
| 92 |
"type": "string" |
| 93 |
} |
| 94 |
} |
| 95 |
] |
| 96 |
}, |
| 97 |
"color": { |
| 98 |
"description": "Whether to colorize command output", |
| 99 |
"enum": [ |
| 100 |
"always", |
| 101 |
"never", |
| 102 |
"debug", |
| 103 |
"auto" |
| 104 |
], |
| 105 |
"default": "auto" |
| 106 |
}, |
| 107 |
"paginate": { |
| 108 |
"type": "string", |
| 109 |
"description": "Whether or not to use a pager", |
| 110 |
"enum": [ |
| 111 |
"never", |
| 112 |
"auto" |
| 113 |
], |
| 114 |
"default": "auto" |
| 115 |
}, |
| 116 |
"pager": { |
| 117 |
"description": "Pager to use for displaying command output", |
| 118 |
"default": "less -FRXK", |
| 119 |
"oneOf": [ |
| 120 |
{ |
| 121 |
"$ref": "#/properties/ui/definitions/command" |
| 122 |
}, |
| 123 |
{ |
| 124 |
"$ref": "#/properties/ui/definitions/command-env" |
| 125 |
} |
| 126 |
] |
| 127 |
}, |
| 128 |
"streampager": { |
| 129 |
"type": "object", |
| 130 |
"description": "':builtin' (streampager-based) pager configuration", |
| 131 |
"properties": { |
| 132 |
"interface": { |
| 133 |
"description": "Whether to quit automatically, whether to clear screen on startup/exit", |
| 134 |
"enum": [ |
| 135 |
"quit-if-one-page", |
| 136 |
"full-screen-clear-output", |
| 137 |
"quit-quickly-or-clear-output" |
| 138 |
], |
| 139 |
"default": "quit-if-one-page" |
| 140 |
}, |
| 141 |
"wrapping": { |
| 142 |
"description": "Whether to wrap long lines", |
| 143 |
"enum": [ |
| 144 |
"anywhere", |
| 145 |
"word", |
| 146 |
"none" |
| 147 |
], |
| 148 |
"default": "anywhere" |
| 149 |
}, |
| 150 |
"show-ruler": { |
| 151 |
"type": "boolean", |
| 152 |
"description": "Whether the ruler should start visible", |
| 153 |
"default": true |
| 154 |
} |
| 155 |
} |
| 156 |
}, |
| 157 |
"diff-instructions": { |
| 158 |
"type": "boolean", |
| 159 |
"description": "Whether to generate the JJ-INSTRUCTIONS file as part of editing a diff", |
| 160 |
"default": true |
| 161 |
}, |
| 162 |
"graph": { |
| 163 |
"type": "object", |
| 164 |
"description": "Options for rendering revision graphs from jj log etc", |
| 165 |
"properties": { |
| 166 |
"style": { |
| 167 |
"description": "Style of connectors/markings used to render the graph. See https://docs.jj-vcs.dev/latest/config/#graph-style", |
| 168 |
"enum": [ |
| 169 |
"curved", |
| 170 |
"square", |
| 171 |
"ascii", |
| 172 |
"ascii-large" |
| 173 |
], |
| 174 |
"default": "curved" |
| 175 |
} |
| 176 |
} |
| 177 |
}, |
| 178 |
"log-word-wrap": { |
| 179 |
"type": "boolean", |
| 180 |
"description": "Whether to wrap log template output", |
| 181 |
"default": false |
| 182 |
}, |
| 183 |
"log-synthetic-elided-nodes": { |
| 184 |
"type": "boolean", |
| 185 |
"description": "Whether to render elided parts of the graph as synthetic nodes.", |
| 186 |
"default": true |
| 187 |
}, |
| 188 |
"editor": { |
| 189 |
"description": "Editor to use for commands that involve editing text", |
| 190 |
"oneOf": [ |
| 191 |
{ |
| 192 |
"$ref": "#/properties/ui/definitions/command" |
| 193 |
}, |
| 194 |
{ |
| 195 |
"$ref": "#/properties/ui/definitions/command-env" |
| 196 |
} |
| 197 |
] |
| 198 |
}, |
| 199 |
"diff-editor": { |
| 200 |
"description": "Editor tool to use for editing diffs", |
| 201 |
"default": ":builtin", |
| 202 |
"oneOf": [ |
| 203 |
{ |
| 204 |
"$ref": "#/properties/ui/definitions/command" |
| 205 |
}, |
| 206 |
{ |
| 207 |
"$ref": "#/properties/ui/definitions/command-env" |
| 208 |
} |
| 209 |
] |
| 210 |
}, |
| 211 |
"diff-formatter": { |
| 212 |
"description": "Tool for displaying or generating diffs", |
| 213 |
"default": ":color-words", |
| 214 |
"oneOf": [ |
| 215 |
{ |
| 216 |
"$ref": "#/properties/ui/definitions/command" |
| 217 |
}, |
| 218 |
{ |
| 219 |
"$ref": "#/properties/ui/definitions/command-env" |
| 220 |
} |
| 221 |
] |
| 222 |
}, |
| 223 |
"merge-editor": { |
| 224 |
"description": "Tool to use for resolving three-way merges. Behavior for a given tool name can be configured in merge-tools.TOOL tables", |
| 225 |
"default": ":builtin", |
| 226 |
"oneOf": [ |
| 227 |
{ |
| 228 |
"$ref": "#/properties/ui/definitions/command" |
| 229 |
}, |
| 230 |
{ |
| 231 |
"$ref": "#/properties/ui/definitions/command-env" |
| 232 |
} |
| 233 |
] |
| 234 |
}, |
| 235 |
"conflict-marker-style": { |
| 236 |
"$ref": "#/properties/ui/definitions/conflict-marker-style" |
| 237 |
}, |
| 238 |
"show-cryptographic-signatures": { |
| 239 |
"type": "boolean", |
| 240 |
"default": false, |
| 241 |
"description": "Whether the built-in templates should show cryptographic signature information" |
| 242 |
}, |
| 243 |
"movement": { |
| 244 |
"type": "object", |
| 245 |
"properties": { |
| 246 |
"edit": { |
| 247 |
"type": "boolean", |
| 248 |
"description": "Whether the next and prev commands should behave as if the --edit flag was passed", |
| 249 |
"default": false |
| 250 |
} |
| 251 |
} |
| 252 |
}, |
| 253 |
"bookmark-list-sort-keys": { |
| 254 |
"type": "array", |
| 255 |
"description": "Specifies the sort keys for the bookmarks list. See the `jj bookmark list --help` for the `--sort` option", |
| 256 |
"items": { |
| 257 |
"type": "string", |
| 258 |
"enum": [ |
| 259 |
"name", |
| 260 |
"name-", |
| 261 |
"author-name", |
| 262 |
"author-name-", |
| 263 |
"author-email", |
| 264 |
"author-email-", |
| 265 |
"author-date", |
| 266 |
"author-date-", |
| 267 |
"committer-name", |
| 268 |
"committer-name-", |
| 269 |
"committer-email", |
| 270 |
"committer-email-", |
| 271 |
"committer-date", |
| 272 |
"committer-date-" |
| 273 |
] |
| 274 |
} |
| 275 |
}, |
| 276 |
"tag-list-sort-keys": { |
| 277 |
"type": "array", |
| 278 |
"description": "Specifies the sort keys for the tags list. See the `jj tag list --help` for the `--sort` option", |
| 279 |
"items": { |
| 280 |
"type": "string", |
| 281 |
"enum": [ |
| 282 |
"name", |
| 283 |
"name-", |
| 284 |
"author-name", |
| 285 |
"author-name-", |
| 286 |
"author-email", |
| 287 |
"author-email-", |
| 288 |
"author-date", |
| 289 |
"author-date-", |
| 290 |
"committer-name", |
| 291 |
"committer-name-", |
| 292 |
"committer-email", |
| 293 |
"committer-email-", |
| 294 |
"committer-date", |
| 295 |
"committer-date-" |
| 296 |
] |
| 297 |
} |
| 298 |
} |
| 299 |
} |
| 300 |
}, |
| 301 |
"fsmonitor": { |
| 302 |
"type": "object", |
| 303 |
"description": "External filesystem monitor settings, useful for large repos", |
| 304 |
"properties": { |
| 305 |
"backend": { |
| 306 |
"type": "string", |
| 307 |
"enum": [ |
| 308 |
"none", |
| 309 |
"watchman" |
| 310 |
], |
| 311 |
"default": "none", |
| 312 |
"description": "Whether to use an external filesystem monitor, useful for large repos" |
| 313 |
}, |
| 314 |
"watchman": { |
| 315 |
"type": "object", |
| 316 |
"properties": { |
| 317 |
"register-snapshot-trigger": { |
| 318 |
"type": "boolean", |
| 319 |
"default": false, |
| 320 |
"description": "Whether to use triggers to monitor for changes in the background." |
| 321 |
} |
| 322 |
} |
| 323 |
} |
| 324 |
} |
| 325 |
}, |
| 326 |
"colors": { |
| 327 |
"type": "object", |
| 328 |
"description": "Mapping from jj formatter labels to colors", |
| 329 |
"definitions": { |
| 330 |
"colorNames": { |
| 331 |
"type": "string", |
| 332 |
"enum": [ |
| 333 |
"default", |
| 334 |
"black", |
| 335 |
"red", |
| 336 |
"green", |
| 337 |
"yellow", |
| 338 |
"blue", |
| 339 |
"magenta", |
| 340 |
"cyan", |
| 341 |
"white", |
| 342 |
"bright black", |
| 343 |
"bright red", |
| 344 |
"bright green", |
| 345 |
"bright yellow", |
| 346 |
"bright blue", |
| 347 |
"bright magenta", |
| 348 |
"bright cyan", |
| 349 |
"bright white" |
| 350 |
] |
| 351 |
}, |
| 352 |
"ansi256Color": { |
| 353 |
"type": "string", |
| 354 |
"pattern": "^ansi-color-([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" |
| 355 |
}, |
| 356 |
"hexColor": { |
| 357 |
"type": "string", |
| 358 |
"pattern": "^#[0-9a-fA-F]{6}$" |
| 359 |
}, |
| 360 |
"colors": { |
| 361 |
"oneOf": [ |
| 362 |
{ |
| 363 |
"$ref": "#/properties/colors/definitions/colorNames" |
| 364 |
}, |
| 365 |
{ |
| 366 |
"$ref": "#/properties/colors/definitions/ansi256Color" |
| 367 |
}, |
| 368 |
{ |
| 369 |
"$ref": "#/properties/colors/definitions/hexColor" |
| 370 |
} |
| 371 |
] |
| 372 |
} |
| 373 |
}, |
| 374 |
"additionalProperties": { |
| 375 |
"description": "A color profile for the given formatter label. Either a bare color name used as the foreground color or a table describing color and formatting", |
| 376 |
"oneOf": [ |
| 377 |
{ |
| 378 |
"$ref": "#/properties/colors/definitions/colors" |
| 379 |
}, |
| 380 |
{ |
| 381 |
"type": "object", |
| 382 |
"properties": { |
| 383 |
"fg": { |
| 384 |
"$ref": "#/properties/colors/definitions/colors" |
| 385 |
}, |
| 386 |
"bg": { |
| 387 |
"$ref": "#/properties/colors/definitions/colors" |
| 388 |
}, |
| 389 |
"bold": { |
| 390 |
"type": "boolean" |
| 391 |
}, |
| 392 |
"dim": { |
| 393 |
"type": "boolean" |
| 394 |
}, |
| 395 |
"italic": { |
| 396 |
"type": "boolean" |
| 397 |
}, |
| 398 |
"underline": { |
| 399 |
"type": "boolean" |
| 400 |
}, |
| 401 |
"crossed-out": { |
| 402 |
"type": "boolean" |
| 403 |
}, |
| 404 |
"reverse": { |
| 405 |
"type": "boolean" |
| 406 |
} |
| 407 |
} |
| 408 |
} |
| 409 |
] |
| 410 |
} |
| 411 |
}, |
| 412 |
"diff": { |
| 413 |
"type": "object", |
| 414 |
"description": "Builtin diff formats settings", |
| 415 |
"properties": { |
| 416 |
"color-words": { |
| 417 |
"type": "object", |
| 418 |
"description": "Options for color-words diffs", |
| 419 |
"properties": { |
| 420 |
"conflict": { |
| 421 |
"type": "string", |
| 422 |
"description": "How conflicts are processed and displayed", |
| 423 |
"enum": [ |
| 424 |
"materialize", |
| 425 |
"pair" |
| 426 |
], |
| 427 |
"default": "materialize" |
| 428 |
}, |
| 429 |
"max-inline-alternation": { |
| 430 |
"type": "integer", |
| 431 |
"description": "Maximum number of removed/added word alternation to inline", |
| 432 |
"default": 3 |
| 433 |
}, |
| 434 |
"context": { |
| 435 |
"type": "integer", |
| 436 |
"description": "Number of lines of context to show", |
| 437 |
"default": 3 |
| 438 |
} |
| 439 |
} |
| 440 |
}, |
| 441 |
"git": { |
| 442 |
"type": "object", |
| 443 |
"description": "Options for git diffs", |
| 444 |
"properties": { |
| 445 |
"context": { |
| 446 |
"type": "integer", |
| 447 |
"description": "Number of lines of context to show", |
| 448 |
"default": 3 |
| 449 |
}, |
| 450 |
"show-path-prefix": { |
| 451 |
"type": "boolean", |
| 452 |
"description": "Whether to show the 'a/' and 'b/' path prefixes", |
| 453 |
"default": true |
| 454 |
} |
| 455 |
} |
| 456 |
}, |
| 457 |
"stat": { |
| 458 |
"type": "object", |
| 459 |
"description": "Options for the diff stat display", |
| 460 |
"properties": { |
| 461 |
"context": { |
| 462 |
"type": "integer", |
| 463 |
"description": "Maximum number of characters to show in the `++--` stat bar" |
| 464 |
} |
| 465 |
} |
| 466 |
} |
| 467 |
} |
| 468 |
}, |
| 469 |
"fileset-aliases": { |
| 470 |
"type": "object", |
| 471 |
"description": "Custom symbols/function aliases that can be used in fileset expressions", |
| 472 |
"additionalProperties": { |
| 473 |
"oneOf": [ |
| 474 |
{ |
| 475 |
"type": "string" |
| 476 |
}, |
| 477 |
{ |
| 478 |
"type": "object", |
| 479 |
"properties": { |
| 480 |
"definition": { |
| 481 |
"type": "string" |
| 482 |
}, |
| 483 |
"doc": { |
| 484 |
"type": "string" |
| 485 |
} |
| 486 |
}, |
| 487 |
"required": [ |
| 488 |
"definition" |
| 489 |
] |
| 490 |
} |
| 491 |
] |
| 492 |
} |
| 493 |
}, |
| 494 |
"git": { |
| 495 |
"type": "object", |
| 496 |
"description": "Settings for git behavior (when using git backend)", |
| 497 |
"properties": { |
| 498 |
"abandon-unreachable-commits": { |
| 499 |
"type": "boolean", |
| 500 |
"description": "Whether jj should abandon commits that became unreachable in Git.", |
| 501 |
"default": true |
| 502 |
}, |
| 503 |
"fetch": { |
| 504 |
"description": "The remote(s) from which commits are fetched", |
| 505 |
"default": "origin", |
| 506 |
"oneOf": [ |
| 507 |
{ |
| 508 |
"type": "string" |
| 509 |
}, |
| 510 |
{ |
| 511 |
"type": "array", |
| 512 |
"items": { |
| 513 |
"type": "string" |
| 514 |
} |
| 515 |
} |
| 516 |
] |
| 517 |
}, |
| 518 |
"private-commits": { |
| 519 |
"type": "string", |
| 520 |
"description": "Revset of commits to refuse to push to remotes", |
| 521 |
"default": "none()" |
| 522 |
}, |
| 523 |
"push": { |
| 524 |
"type": "string", |
| 525 |
"description": "The remote to which commits are pushed", |
| 526 |
"default": "origin" |
| 527 |
}, |
| 528 |
"record-synthetic-predecessors": { |
| 529 |
"type": "boolean", |
| 530 |
"description": "Whether to generate synthetic predecessors for fetched/imported commits", |
| 531 |
"default": true |
| 532 |
}, |
| 533 |
"sign-on-push": { |
| 534 |
"type": "boolean", |
| 535 |
"description": "Whether jj should sign commits before pushing", |
| 536 |
"default": false |
| 537 |
}, |
| 538 |
"track-default-bookmark-on-clone": { |
| 539 |
"type": "boolean", |
| 540 |
"description": "Whether `jj git clone` creates a local bookmark tracking the default remote bookmark", |
| 541 |
"default": true |
| 542 |
}, |
| 543 |
"write-change-id-header": { |
| 544 |
"type": "boolean", |
| 545 |
"description": "Whether the change id should be stored in the Git commit object", |
| 546 |
"default": true |
| 547 |
}, |
| 548 |
"executable-path": { |
| 549 |
"type": "string", |
| 550 |
"description": "Path to the git executable", |
| 551 |
"default": "git" |
| 552 |
}, |
| 553 |
"colocate": { |
| 554 |
"type": "boolean", |
| 555 |
"description": "Whether to colocate the working copy with the git repository", |
| 556 |
"default": true |
| 557 |
}, |
| 558 |
"object-hash": { |
| 559 |
"enum": ["sha1", "sha256"], |
| 560 |
"description": "Object hash algorithm used when initializing a new Git repository", |
| 561 |
"default": "sha1" |
| 562 |
} |
| 563 |
} |
| 564 |
}, |
| 565 |
"remotes": { |
| 566 |
"type": "object", |
| 567 |
"description": "Settings related to specific remotes", |
| 568 |
"additionalProperties": { |
| 569 |
"type": "object", |
| 570 |
"properties": { |
| 571 |
"auto-track-bookmarks": { |
| 572 |
"type": "string", |
| 573 |
"description": "A string pattern describing the bookmarks to automatically track with this remote. It will be applied to any new bookmark, created or fetched. See https://docs.jj-vcs.dev/latest/config/#automatic-tracking-of-bookmarks", |
| 574 |
"default": "~*" |
| 575 |
}, |
| 576 |
"auto-track-created-bookmarks": { |
| 577 |
"type": "string", |
| 578 |
"description": "A string pattern describing the locally-created bookmarks which should track this remote automatically. It will be applied to new bookmarks created with `jj bookmark create` or `jj bookmark set`. See https://docs.jj-vcs.dev/latest/config/#automatic-tracking-of-bookmarks", |
| 579 |
"default": "~*" |
| 580 |
}, |
| 581 |
"fetch-bookmarks": { |
| 582 |
"type": "string", |
| 583 |
"description": "A string pattern describing the bookmarks to fetch by default" |
| 584 |
}, |
| 585 |
"fetch-tags": { |
| 586 |
"type": "string", |
| 587 |
"description": "A string pattern describing the tags to fetch by default" |
| 588 |
} |
| 589 |
} |
| 590 |
} |
| 591 |
}, |
| 592 |
"gerrit": { |
| 593 |
"type": "object", |
| 594 |
"description": "Settings for interacting with Gerrit", |
| 595 |
"properties": { |
| 596 |
"default-remote": { |
| 597 |
"type": "string", |
| 598 |
"description": "The Gerrit remote to interact with" |
| 599 |
}, |
| 600 |
"default-remote-branch": { |
| 601 |
"type": "string", |
| 602 |
"description": "The default branch to propose changes for" |
| 603 |
}, |
| 604 |
"review-url": { |
| 605 |
"type": "string", |
| 606 |
"description": "Generate Link trailers with this URL instead of Change-Id trailers in `jj gerrit upload`" |
| 607 |
} |
| 608 |
} |
| 609 |
}, |
| 610 |
"merge": { |
| 611 |
"type": "object", |
| 612 |
"description": "Merge settings", |
| 613 |
"properties": { |
| 614 |
"hunk-level": { |
| 615 |
"type": "string", |
| 616 |
"description": "Granularity of hunks when merging files", |
| 617 |
"enum": [ |
| 618 |
"line", |
| 619 |
"word" |
| 620 |
], |
| 621 |
"default": "line" |
| 622 |
}, |
| 623 |
"same-change": { |
| 624 |
"type": "string", |
| 625 |
"description": "Whether to resolve conflict that makes the same change at all sides", |
| 626 |
"enum": [ |
| 627 |
"keep", |
| 628 |
"accept" |
| 629 |
], |
| 630 |
"default": "accept" |
| 631 |
} |
| 632 |
} |
| 633 |
}, |
| 634 |
"merge-tools": { |
| 635 |
"type": "object", |
| 636 |
"description": "Tables of custom options to pass to the given merge tool (selected in ui.merge-editor)", |
| 637 |
"additionalProperties": { |
| 638 |
"type": "object", |
| 639 |
"properties": { |
| 640 |
"program": { |
| 641 |
"type": "string" |
| 642 |
}, |
| 643 |
"diff-args": { |
| 644 |
"type": "array", |
| 645 |
"items": { |
| 646 |
"type": "string" |
| 647 |
} |
| 648 |
}, |
| 649 |
"diff-expected-exit-codes": { |
| 650 |
"type": "array", |
| 651 |
"items": { |
| 652 |
"type": "integer" |
| 653 |
}, |
| 654 |
"description": "Array of exit codes that do not indicate tool failure, i.e. [0, 1] for unix diff.", |
| 655 |
"default": [ |
| 656 |
0 |
| 657 |
] |
| 658 |
}, |
| 659 |
"diff-do-chdir": { |
| 660 |
"type": "boolean", |
| 661 |
"description": "Invoke the tool in the temporary diff directory. This setting will be removed soon", |
| 662 |
"default": true |
| 663 |
}, |
| 664 |
"diff-invocation-mode": { |
| 665 |
"description": "Invoke the tool with directories or individual files when generating diffs.", |
| 666 |
"enum": [ |
| 667 |
"dir", |
| 668 |
"file-by-file" |
| 669 |
], |
| 670 |
"default": "dir" |
| 671 |
}, |
| 672 |
"edit-args": { |
| 673 |
"type": "array", |
| 674 |
"items": { |
| 675 |
"type": "string" |
| 676 |
} |
| 677 |
}, |
| 678 |
"edit-invocation-mode": { |
| 679 |
"description": "Invoke the tool with directories or individual files when editing diffs (e.g. jj diffedit, jj split).", |
| 680 |
"enum": [ |
| 681 |
"dir", |
| 682 |
"file-by-file" |
| 683 |
], |
| 684 |
"default": "dir" |
| 685 |
}, |
| 686 |
"merge-args": { |
| 687 |
"type": "array", |
| 688 |
"items": { |
| 689 |
"type": "string" |
| 690 |
} |
| 691 |
}, |
| 692 |
"merge-conflict-exit-codes": { |
| 693 |
"type": "array", |
| 694 |
"items": { |
| 695 |
"type": "number" |
| 696 |
}, |
| 697 |
"description": "Array of exit codes to indicate that the conflict was only partially resolved. See https://docs.jj-vcs.dev/latest/config/#editing-conflict-markers-with-a-tool-or-a-text-editor", |
| 698 |
"default": [] |
| 699 |
}, |
| 700 |
"merge-tool-edits-conflict-markers": { |
| 701 |
"type": "boolean", |
| 702 |
"description": "Whether to populate the output file with conflict markers before starting the merge tool. See https://docs.jj-vcs.dev/latest/config/#editing-conflict-markers-with-a-tool-or-a-text-editor", |
| 703 |
"default": false |
| 704 |
}, |
| 705 |
"conflict-marker-style": { |
| 706 |
"$ref": "#/properties/ui/definitions/conflict-marker-style" |
| 707 |
} |
| 708 |
} |
| 709 |
} |
| 710 |
}, |
| 711 |
"revsets": { |
| 712 |
"type": "object", |
| 713 |
"description": "Revset expressions used by various commands", |
| 714 |
"properties": { |
| 715 |
"arrange": { |
| 716 |
"type": "string", |
| 717 |
"description": "Default set of revisions to open in the TUI when no explicit revset is given for jj arrange", |
| 718 |
"default": "reachable(@, mutable())" |
| 719 |
}, |
| 720 |
"fix": { |
| 721 |
"type": "string", |
| 722 |
"description": "Default set of revisions to fix when no explicit revset is given for jj fix", |
| 723 |
"default": "reachable(@, mutable())" |
| 724 |
}, |
| 725 |
"log": { |
| 726 |
"type": "string", |
| 727 |
"description": "Default set of revisions to show when no explicit revset is given for jj log and similar commands", |
| 728 |
"default": "builtin_log()" |
| 729 |
}, |
| 730 |
"short-prefixes": { |
| 731 |
"type": "string", |
| 732 |
"description": "Revisions to give shorter change and commit IDs to", |
| 733 |
"default": "<revsets.log>" |
| 734 |
}, |
| 735 |
"run": { |
| 736 |
"type": "string", |
| 737 |
"description": "Default set of revisions to run a command on when no explicit revset is given for jj run", |
| 738 |
"default": "reachable(@, mutable())" |
| 739 |
}, |
| 740 |
"simplify-parents": { |
| 741 |
"type": "string", |
| 742 |
"description": "Default set of revisions to simplify when no explicit revset is given for jj simplify-parents", |
| 743 |
"default": "reachable(@, mutable())" |
| 744 |
}, |
| 745 |
"sign": { |
| 746 |
"type": "string", |
| 747 |
"description": "Default set of revisions to sign when no explicit revset is given for jj sign", |
| 748 |
"default": "reachable(@, mutable())" |
| 749 |
}, |
| 750 |
"log-graph-prioritize": { |
| 751 |
"type": "string", |
| 752 |
"description": "Set of revisions to prioritize when rendering the graph for jj log", |
| 753 |
"default": "present(@)" |
| 754 |
}, |
| 755 |
"bookmark-advance-to": { |
| 756 |
"type": "string", |
| 757 |
"description": "Default revision to advance bookmarks to when no explicit revision is given to jj advance `--to`", |
| 758 |
"default": "@" |
| 759 |
}, |
| 760 |
"bookmark-advance-from": { |
| 761 |
"type": "string", |
| 762 |
"description": "Default set of revisions to advance bookmarks from for jj advance (has access to `to`, the advance destination)", |
| 763 |
"default": "heads(::to & bookmarks())" |
| 764 |
} |
| 765 |
}, |
| 766 |
"additionalProperties": { |
| 767 |
"type": "string" |
| 768 |
} |
| 769 |
}, |
| 770 |
"revset-aliases": { |
| 771 |
"type": "object", |
| 772 |
"description": "Custom symbols/function aliases that can be used in revset expressions", |
| 773 |
"properties": { |
| 774 |
"immutable_heads()": { |
| 775 |
"type": "string", |
| 776 |
"description": "Revisions to consider immutable. Ancestors of these are also considered immutable. The root commit is always considered immutable.", |
| 777 |
"default": "trunk() | tags() | untracked_remote_bookmarks() | untracked_remote_tags()" |
| 778 |
} |
| 779 |
}, |
| 780 |
"additionalProperties": { |
| 781 |
"oneOf": [ |
| 782 |
{ |
| 783 |
"type": "string" |
| 784 |
}, |
| 785 |
{ |
| 786 |
"type": "object", |
| 787 |
"properties": { |
| 788 |
"definition": { |
| 789 |
"type": "string" |
| 790 |
}, |
| 791 |
"doc": { |
| 792 |
"type": "string" |
| 793 |
} |
| 794 |
}, |
| 795 |
"required": [ |
| 796 |
"definition" |
| 797 |
] |
| 798 |
} |
| 799 |
] |
| 800 |
} |
| 801 |
}, |
| 802 |
"template-aliases": { |
| 803 |
"type": "object", |
| 804 |
"description": "Custom symbols/function aliases that can be used in templates", |
| 805 |
"additionalProperties": { |
| 806 |
"oneOf": [ |
| 807 |
{ |
| 808 |
"type": "string" |
| 809 |
}, |
| 810 |
{ |
| 811 |
"type": "object", |
| 812 |
"properties": { |
| 813 |
"definition": { |
| 814 |
"type": "string" |
| 815 |
}, |
| 816 |
"doc": { |
| 817 |
"type": "string" |
| 818 |
} |
| 819 |
}, |
| 820 |
"required": [ |
| 821 |
"definition" |
| 822 |
] |
| 823 |
} |
| 824 |
] |
| 825 |
} |
| 826 |
}, |
| 827 |
"aliases": { |
| 828 |
"type": "object", |
| 829 |
"description": "Custom subcommand aliases to be supported by the jj command", |
| 830 |
"additionalProperties": { |
| 831 |
"oneOf": [ |
| 832 |
{ |
| 833 |
"type": "array", |
| 834 |
"items": { |
| 835 |
"type": "string" |
| 836 |
} |
| 837 |
}, |
| 838 |
{ |
| 839 |
"type": "object", |
| 840 |
"properties": { |
| 841 |
"definition": { |
| 842 |
"type": "array", |
| 843 |
"items": { |
| 844 |
"type": "string" |
| 845 |
} |
| 846 |
}, |
| 847 |
"doc": { |
| 848 |
"type": "string" |
| 849 |
} |
| 850 |
}, |
| 851 |
"required": [ |
| 852 |
"definition" |
| 853 |
] |
| 854 |
} |
| 855 |
] |
| 856 |
} |
| 857 |
}, |
| 858 |
"run": { |
| 859 |
"type": "object", |
| 860 |
"description": "Settings for the `jj run` command, which runs a shell command across a set of revisions.", |
| 861 |
"properties": { |
| 862 |
"jobs": { |
| 863 |
"type": "integer", |
| 864 |
"minimum": 1, |
| 865 |
"description": "Maximum number of working copies (and parallel jobs) `jj run` uses. Defaults to 1. Overridden by `--jobs`." |
| 866 |
} |
| 867 |
} |
| 868 |
}, |
| 869 |
"snapshot": { |
| 870 |
"type": "object", |
| 871 |
"description": "Parameters governing automatic capture of files into the working copy commit", |
| 872 |
"properties": { |
| 873 |
"auto-track": { |
| 874 |
"type": "string", |
| 875 |
"description": "Fileset pattern describing what new files to automatically track on snapshotting. By default all new files are tracked.", |
| 876 |
"default": "all()" |
| 877 |
}, |
| 878 |
"auto-update-stale": { |
| 879 |
"type": "boolean", |
| 880 |
"description": "Whether to automatically update the working copy if it is stale. See https://docs.jj-vcs.dev/latest/working-copy/#stale-working-copy", |
| 881 |
"default": false |
| 882 |
}, |
| 883 |
"max-new-file-size": { |
| 884 |
"type": [ |
| 885 |
"integer", |
| 886 |
"string" |
| 887 |
], |
| 888 |
"description": "New files with a size in bytes above this threshold are not snapshotted, unless the threshold is 0", |
| 889 |
"default": "1MiB" |
| 890 |
} |
| 891 |
} |
| 892 |
}, |
| 893 |
"experimental-advance-branches": { |
| 894 |
"type": "object", |
| 895 |
"description": "Settings controlling the 'advance-branches' feature which moves bookmarks forward when new commits are created.", |
| 896 |
"properties": { |
| 897 |
"enabled-branches": { |
| 898 |
"type": "array", |
| 899 |
"description": "Patterns used to identify bookmarks which may be advanced.", |
| 900 |
"items": { |
| 901 |
"type": "string" |
| 902 |
} |
| 903 |
}, |
| 904 |
"disabled-branches": { |
| 905 |
"type": "array", |
| 906 |
"description": "Patterns used to identify bookmarks which are not advanced. Takes precedence over 'enabled-branches'.", |
| 907 |
"items": { |
| 908 |
"type": "string" |
| 909 |
} |
| 910 |
} |
| 911 |
} |
| 912 |
}, |
| 913 |
"signing": { |
| 914 |
"type": "object", |
| 915 |
"description": "Settings for verifying and creating cryptographic commit signatures", |
| 916 |
"properties": { |
| 917 |
"backend": { |
| 918 |
"type": "string", |
| 919 |
"enum": [ |
| 920 |
"gpg", |
| 921 |
"gpgsm", |
| 922 |
"none", |
| 923 |
"ssh" |
| 924 |
], |
| 925 |
"description": "The backend to use for signing commits. The string `none` disables signing.", |
| 926 |
"default": "none" |
| 927 |
}, |
| 928 |
"key": { |
| 929 |
"type": "string", |
| 930 |
"description": "The key the configured signing backend will use to to sign commits. Overridden by `jj sign` parameter or by the global `--sign-with` option" |
| 931 |
}, |
| 932 |
"behavior": { |
| 933 |
"type": "string", |
| 934 |
"enum": [ |
| 935 |
"drop", |
| 936 |
"keep", |
| 937 |
"own", |
| 938 |
"force" |
| 939 |
], |
| 940 |
"description": "Which commits to sign by default. Values: drop (never sign), keep (preserve existing signatures), own (sign own commits), force (sign all commits)" |
| 941 |
}, |
| 942 |
"backends": { |
| 943 |
"type": "object", |
| 944 |
"description": "Tables of options to pass to specific signing backends", |
| 945 |
"properties": { |
| 946 |
"gpg": { |
| 947 |
"type": "object", |
| 948 |
"properties": { |
| 949 |
"program": { |
| 950 |
"type": "string", |
| 951 |
"description": "Path to the gpg program to be called", |
| 952 |
"default": "gpg" |
| 953 |
}, |
| 954 |
"allow-expired-keys": { |
| 955 |
"type": "boolean", |
| 956 |
"description": "Whether to consider signatures generated with an expired key as valid", |
| 957 |
"default": false |
| 958 |
} |
| 959 |
} |
| 960 |
}, |
| 961 |
"gpgsm": { |
| 962 |
"type": "object", |
| 963 |
"properties": { |
| 964 |
"program": { |
| 965 |
"type": "string", |
| 966 |
"description": "Path to the gpgsm program to be called", |
| 967 |
"default": "gpgsm" |
| 968 |
}, |
| 969 |
"allow-expired-keys": { |
| 970 |
"type": "boolean", |
| 971 |
"description": "Whether to consider signatures generated with an expired key as valid", |
| 972 |
"default": false |
| 973 |
} |
| 974 |
} |
| 975 |
}, |
| 976 |
"ssh": { |
| 977 |
"type": "object", |
| 978 |
"properties": { |
| 979 |
"program": { |
| 980 |
"type": "string", |
| 981 |
"description": "Path to the ssh-keygen program to be called", |
| 982 |
"default": "ssh-keygen" |
| 983 |
}, |
| 984 |
"allowed-signers": { |
| 985 |
"type": "string", |
| 986 |
"description": "Path to an allowed signers file used for signature verification" |
| 987 |
}, |
| 988 |
"revocation-list": { |
| 989 |
"type": "string", |
| 990 |
"description": "Path to a revocation list file used for revoking public keys" |
| 991 |
} |
| 992 |
} |
| 993 |
} |
| 994 |
}, |
| 995 |
"additionalProperties": true |
| 996 |
} |
| 997 |
} |
| 998 |
}, |
| 999 |
"fix": { |
| 1000 |
"type": "object", |
| 1001 |
"description": "Settings for jj fix", |
| 1002 |
"properties": { |
| 1003 |
"tools": { |
| 1004 |
"type": "object", |
| 1005 |
"additionalProperties": { |
| 1006 |
"type": "object", |
| 1007 |
"description": "Settings for how specific filesets are affected by a tool", |
| 1008 |
"properties": { |
| 1009 |
"command": { |
| 1010 |
"description": "Arguments used to execute this tool", |
| 1011 |
"oneOf": [ |
| 1012 |
{ |
| 1013 |
"$ref": "#/properties/ui/definitions/command" |
| 1014 |
}, |
| 1015 |
{ |
| 1016 |
"$ref": "#/properties/ui/definitions/command-env" |
| 1017 |
} |
| 1018 |
] |
| 1019 |
}, |
| 1020 |
"patterns": { |
| 1021 |
"type": "array", |
| 1022 |
"items": { |
| 1023 |
"type": "string" |
| 1024 |
}, |
| 1025 |
"description": "Filesets that will be affected by this tool" |
| 1026 |
}, |
| 1027 |
"enabled": { |
| 1028 |
"type": "boolean", |
| 1029 |
"description": "Disables this tool if set to false", |
| 1030 |
"default": true |
| 1031 |
}, |
| 1032 |
"line-range-arg": { |
| 1033 |
"type": "string", |
| 1034 |
"description": "Argument template for changed line ranges (e.g. '--lines=$first-$last')" |
| 1035 |
}, |
| 1036 |
"run-tool-if-zero-line-ranges": { |
| 1037 |
"type": "boolean", |
| 1038 |
"description": "Whether to run the tool if there are zero line ranges to format.", |
| 1039 |
"default": false |
| 1040 |
} |
| 1041 |
} |
| 1042 |
}, |
| 1043 |
"description": "Settings for tools run by jj fix" |
| 1044 |
} |
| 1045 |
} |
| 1046 |
}, |
| 1047 |
"split": { |
| 1048 |
"type": "object", |
| 1049 |
"description": "Settings for jj split", |
| 1050 |
"properties": { |
| 1051 |
"legacy-bookmark-behavior": { |
| 1052 |
"type": "boolean", |
| 1053 |
"description": "If true, bookmarks will move to the second commit instead of the first.", |
| 1054 |
"default": true |
| 1055 |
} |
| 1056 |
} |
| 1057 |
}, |
| 1058 |
"hints": { |
| 1059 |
"type": "object", |
| 1060 |
"description": "Various hints in jj's UI that can be disabled", |
| 1061 |
"additionalProperties": { |
| 1062 |
"type": "boolean" |
| 1063 |
} |
| 1064 |
}, |
| 1065 |
"templates": { |
| 1066 |
"type": "object", |
| 1067 |
"description": "Definitions for the templates that various jj commands use", |
| 1068 |
"properties": { |
| 1069 |
"arrange": { |
| 1070 |
"type": "string", |
| 1071 |
"description": "`jj arrange``'s template for commits in the main view" |
| 1072 |
}, |
| 1073 |
"bookmark_list": { |
| 1074 |
"type": "string", |
| 1075 |
"description": "`jj bookmark list`'s output" |
| 1076 |
}, |
| 1077 |
"commit_summary": { |
| 1078 |
"type": "string", |
| 1079 |
"description": "The short commit summary used by many commands" |
| 1080 |
}, |
| 1081 |
"commit_trailers": { |
| 1082 |
"type": "string", |
| 1083 |
"description": "Trailers that will be appended to a commit's description" |
| 1084 |
}, |
| 1085 |
"file_annotate": { |
| 1086 |
"type": "string", |
| 1087 |
"description": "`jj file annotate`'s output" |
| 1088 |
}, |
| 1089 |
"config_list": { |
| 1090 |
"type": "string", |
| 1091 |
"description": "`jj config list`'s output" |
| 1092 |
}, |
| 1093 |
"draft_commit_description": { |
| 1094 |
"type": "string", |
| 1095 |
"description": "The draft commit description opened in an editor" |
| 1096 |
}, |
| 1097 |
"evolog": { |
| 1098 |
"type": "string", |
| 1099 |
"description": "`jj evolog`'s output" |
| 1100 |
}, |
| 1101 |
"file_list": { |
| 1102 |
"type": "string", |
| 1103 |
"description": "`jj file list`'s output" |
| 1104 |
}, |
| 1105 |
"file_show": { |
| 1106 |
"type": "string", |
| 1107 |
"description": "`jj file show`'s output" |
| 1108 |
}, |
| 1109 |
"git_push_bookmark": { |
| 1110 |
"type": "string", |
| 1111 |
"description": "Bookmark name to be assigned when pushing a change to Git remote" |
| 1112 |
}, |
| 1113 |
"log": { |
| 1114 |
"type": "string", |
| 1115 |
"description": "`jj log`'s output" |
| 1116 |
}, |
| 1117 |
"op_log": { |
| 1118 |
"type": "string", |
| 1119 |
"description": "`jj op log`'s output" |
| 1120 |
}, |
| 1121 |
"op_show": { |
| 1122 |
"type": "string", |
| 1123 |
"description": "`jj op show`'s output" |
| 1124 |
}, |
| 1125 |
"op_summary": { |
| 1126 |
"type": "string", |
| 1127 |
"description": "The operation summary used by many commands" |
| 1128 |
}, |
| 1129 |
"show": { |
| 1130 |
"type": "string", |
| 1131 |
"description": "`jj show`'s output" |
| 1132 |
}, |
| 1133 |
"revert_description": { |
| 1134 |
"type": "string", |
| 1135 |
"description": "The description of commits reverted by `jj revert`" |
| 1136 |
}, |
| 1137 |
"tag_list": { |
| 1138 |
"type": "string", |
| 1139 |
"description": "`jj tag list`'s output" |
| 1140 |
}, |
| 1141 |
"workspace_list": { |
| 1142 |
"type": "string", |
| 1143 |
"description": "`jj workspace list`'s output" |
| 1144 |
} |
| 1145 |
}, |
| 1146 |
"additionalProperties": { |
| 1147 |
"type": "string" |
| 1148 |
} |
| 1149 |
}, |
| 1150 |
"working-copy": { |
| 1151 |
"type": "object", |
| 1152 |
"description": "Working copy settings", |
| 1153 |
"properties": { |
| 1154 |
"eol-conversion": { |
| 1155 |
"type": "string", |
| 1156 |
"description": "Configuring auto-converting CRLF line endings into LF when you add a file to the backend, and vice versa when it checks out code onto your filesystem.", |
| 1157 |
"enum": [ |
| 1158 |
"input", |
| 1159 |
"input-output", |
| 1160 |
"none" |
| 1161 |
], |
| 1162 |
"default": "none" |
| 1163 |
}, |
| 1164 |
"exec-bit-change": { |
| 1165 |
"type": "string", |
| 1166 |
"description": "Whether to respect changes to executable bits on Unix. This is unused on Windows.", |
| 1167 |
"enum": [ |
| 1168 |
"respect", |
| 1169 |
"ignore", |
| 1170 |
"auto" |
| 1171 |
], |
| 1172 |
"default": "auto" |
| 1173 |
} |
| 1174 |
} |
| 1175 |
}, |
| 1176 |
"--when": { |
| 1177 |
"type": "object", |
| 1178 |
"description": "Conditions restricting the application of the configuration", |
| 1179 |
"properties": { |
| 1180 |
"repositories": { |
| 1181 |
"type": "array", |
| 1182 |
"description": "List of paths to match the repository path prefix", |
| 1183 |
"items": { |
| 1184 |
"type": "string" |
| 1185 |
} |
| 1186 |
}, |
| 1187 |
"hostnames": { |
| 1188 |
"type": "array", |
| 1189 |
"description": "List of hostnames to match the hostname", |
| 1190 |
"items": { |
| 1191 |
"type": "string" |
| 1192 |
} |
| 1193 |
}, |
| 1194 |
"workspaces": { |
| 1195 |
"type": "array", |
| 1196 |
"description": "List of paths to match the workspace path prefix", |
| 1197 |
"items": { |
| 1198 |
"type": "string" |
| 1199 |
} |
| 1200 |
}, |
| 1201 |
"commands": { |
| 1202 |
"type": "array", |
| 1203 |
"description": "List of subcommands to match", |
| 1204 |
"items": { |
| 1205 |
"type": "string" |
| 1206 |
} |
| 1207 |
}, |
| 1208 |
"platforms": { |
| 1209 |
"type": "array", |
| 1210 |
"description": "List of platforms to match", |
| 1211 |
"items": { |
| 1212 |
"type": "string", |
| 1213 |
"enum": [ |
| 1214 |
"aix", |
| 1215 |
"android", |
| 1216 |
"apple", |
| 1217 |
"dragonfly", |
| 1218 |
"emscripten", |
| 1219 |
"espidf", |
| 1220 |
"fortanix", |
| 1221 |
"freebsd", |
| 1222 |
"fuchsia", |
| 1223 |
"haiku", |
| 1224 |
"hermit", |
| 1225 |
"horizon", |
| 1226 |
"hurd", |
| 1227 |
"illumos", |
| 1228 |
"ios", |
| 1229 |
"itron", |
| 1230 |
"l4re", |
| 1231 |
"linux", |
| 1232 |
"macos", |
| 1233 |
"netbsd", |
| 1234 |
"nto", |
| 1235 |
"openbsd", |
| 1236 |
"redox", |
| 1237 |
"solaris", |
| 1238 |
"solid_asp3", |
| 1239 |
"tvos", |
| 1240 |
"uefi", |
| 1241 |
"unix", |
| 1242 |
"visionos", |
| 1243 |
"vita", |
| 1244 |
"vxworks", |
| 1245 |
"wasi", |
| 1246 |
"wasm", |
| 1247 |
"watchos", |
| 1248 |
"windows", |
| 1249 |
"xous" |
| 1250 |
] |
| 1251 |
} |
| 1252 |
}, |
| 1253 |
"environments": { |
| 1254 |
"type": "array", |
| 1255 |
"description": "List of environment conditions, any of which must match (NAME=VALUE) or be present (NAME).", |
| 1256 |
"items": { |
| 1257 |
"type": "string" |
| 1258 |
} |
| 1259 |
} |
| 1260 |
} |
| 1261 |
}, |
| 1262 |
"--scope": { |
| 1263 |
"type": "array", |
| 1264 |
"description": "Scoped tables for conditional configuration", |
| 1265 |
"items": { |
| 1266 |
"$comment": "https://json-schema.org/understanding-json-schema/structuring#recursion", |
| 1267 |
"$ref": "#" |
| 1268 |
} |
| 1269 |
} |
| 1270 |
} |
| 1271 |
} |