jj-cli 0.41.0

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