View Javadoc
1   /*
2    * Copyright (C) 2010, Mathias Kinzler <mathias.kinzler@sap.com>
3    * Copyright (C) 2010, Chris Aniszczyk <caniszczyk@gmail.com>
4    * Copyright (C) 2012, 2020, Robin Rosenberg and others
5    *
6    * This program and the accompanying materials are made available under the
7    * terms of the Eclipse Distribution License v. 1.0 which is available at
8    * https://www.eclipse.org/org/documents/edl-v10.php.
9    *
10   * SPDX-License-Identifier: BSD-3-Clause
11   */
12  package org.eclipse.jgit.lib;
13  
14  /**
15   * Constants for use with the Configuration classes: section names,
16   * configuration keys
17   */
18  @SuppressWarnings("nls")
19  public final class ConfigConstants {
20  	/** The "core" section */
21  	public static final String CONFIG_CORE_SECTION = "core";
22  
23  	/** The "branch" section */
24  	public static final String CONFIG_BRANCH_SECTION = "branch";
25  
26  	/** The "remote" section */
27  	public static final String CONFIG_REMOTE_SECTION = "remote";
28  
29  	/** The "diff" section */
30  	public static final String CONFIG_DIFF_SECTION = "diff";
31  
32  	/** The "dfs" section */
33  	public static final String CONFIG_DFS_SECTION = "dfs";
34  
35  	/**
36  	 * The "receive" section
37  	 * @since 4.6
38  	 */
39  	public static final String CONFIG_RECEIVE_SECTION = "receive";
40  
41  	/** The "user" section */
42  	public static final String CONFIG_USER_SECTION = "user";
43  
44  	/** The "gerrit" section */
45  	public static final String CONFIG_GERRIT_SECTION = "gerrit";
46  
47  	/** The "workflow" section */
48  	public static final String CONFIG_WORKFLOW_SECTION = "workflow";
49  
50  	/** The "submodule" section */
51  	public static final String CONFIG_SUBMODULE_SECTION = "submodule";
52  
53  	/**
54  	 * The "rebase" section
55  	 * @since 3.2
56  	 */
57  	public static final String CONFIG_REBASE_SECTION = "rebase";
58  
59  	/** The "gc" section */
60  	public static final String CONFIG_GC_SECTION = "gc";
61  
62  	/** The "pack" section */
63  	public static final String CONFIG_PACK_SECTION = "pack";
64  
65  	/**
66  	 * The "fetch" section
67  	 * @since 3.3
68  	 */
69  	public static final String CONFIG_FETCH_SECTION = "fetch";
70  
71  	/**
72  	 * The "pull" section
73  	 * @since 3.5
74  	 */
75  	public static final String CONFIG_PULL_SECTION = "pull";
76  
77  	/**
78  	 * The "merge" section
79  	 * @since 4.9
80  	 */
81  	public static final String CONFIG_MERGE_SECTION = "merge";
82  
83  	/**
84  	 * The "filter" section
85  	 * @since 4.6
86  	 */
87  	public static final String CONFIG_FILTER_SECTION = "filter";
88  
89  	/**
90  	 * The "gpg" section
91  	 * @since 5.2
92  	 */
93  	public static final String CONFIG_GPG_SECTION = "gpg";
94  
95  	/**
96  	 * The "protocol" section
97  	 * @since 5.9
98  	 */
99  	public static final String CONFIG_PROTOCOL_SECTION = "protocol";
100 
101 	/**
102 	 * The "format" key
103 	 * @since 5.2
104 	 */
105 	public static final String CONFIG_KEY_FORMAT = "format";
106 
107 	/**
108 	 * The "signingKey" key
109 	 * @since 5.2
110 	 */
111 	public static final String CONFIG_KEY_SIGNINGKEY = "signingKey";
112 
113 	/**
114 	 * The "commit" section
115 	 * @since 5.2
116 	 */
117 	public static final String CONFIG_COMMIT_SECTION = "commit";
118 
119 	/**
120 	 * The "gpgSign" key
121 	 * @since 5.2
122 	 */
123 	public static final String CONFIG_KEY_GPGSIGN = "gpgSign";
124 
125 	/**
126 	 * The "hooksPath" key.
127 	 * @since 5.6
128 	 */
129 	public static final String CONFIG_KEY_HOOKS_PATH = "hooksPath";
130 
131 	/**
132 	 * The "quotePath" key.
133 	 * @since 5.6
134 	 */
135 	public static final String CONFIG_KEY_QUOTE_PATH = "quotePath";
136 
137 	/** The "algorithm" key */
138 	public static final String CONFIG_KEY_ALGORITHM = "algorithm";
139 
140 	/** The "autocrlf" key */
141 	public static final String CONFIG_KEY_AUTOCRLF = "autocrlf";
142 
143 	/**
144 	 * The "auto" key
145 	 * @since 4.6
146 	 */
147 	public static final String CONFIG_KEY_AUTO = "auto";
148 
149 	/**
150 	 * The "autogc" key
151 	 * @since 4.6
152 	 */
153 	public static final String CONFIG_KEY_AUTOGC = "autogc";
154 
155 	/**
156 	 * The "autopacklimit" key
157 	 * @since 4.6
158 	 */
159 	public static final String CONFIG_KEY_AUTOPACKLIMIT = "autopacklimit";
160 
161 	/**
162 	 * The "eol" key
163 	 *
164 	 * @since 4.3
165 	 */
166 	public static final String CONFIG_KEY_EOL = "eol";
167 
168 	/** The "bare" key */
169 	public static final String CONFIG_KEY_BARE = "bare";
170 
171 	/** The "excludesfile" key */
172 	public static final String CONFIG_KEY_EXCLUDESFILE = "excludesfile";
173 
174 	/**
175 	 * The "attributesfile" key
176 	 *
177 	 * @since 3.7
178 	 */
179 	public static final String CONFIG_KEY_ATTRIBUTESFILE = "attributesfile";
180 
181 	/** The "filemode" key */
182 	public static final String CONFIG_KEY_FILEMODE = "filemode";
183 
184 	/** The "logallrefupdates" key */
185 	public static final String CONFIG_KEY_LOGALLREFUPDATES = "logallrefupdates";
186 
187 	/** The "repositoryformatversion" key */
188 	public static final String CONFIG_KEY_REPO_FORMAT_VERSION = "repositoryformatversion";
189 
190 	/** The "worktree" key */
191 	public static final String CONFIG_KEY_WORKTREE = "worktree";
192 
193 	/** The "blockLimit" key */
194 	public static final String CONFIG_KEY_BLOCK_LIMIT = "blockLimit";
195 
196 	/** The "blockSize" key */
197 	public static final String CONFIG_KEY_BLOCK_SIZE = "blockSize";
198 
199 	/**
200 	 * The "concurrencyLevel" key
201 	 *
202 	 * @since 4.6
203 	 */
204 	public static final String CONFIG_KEY_CONCURRENCY_LEVEL = "concurrencyLevel";
205 
206 	/** The "deltaBaseCacheLimit" key */
207 	public static final String CONFIG_KEY_DELTA_BASE_CACHE_LIMIT = "deltaBaseCacheLimit";
208 
209 	/**
210 	 * The "symlinks" key
211 	 * @since 3.3
212 	 */
213 	public static final String CONFIG_KEY_SYMLINKS = "symlinks";
214 
215 	/** The "streamFileThreshold" key */
216 	public static final String CONFIG_KEY_STREAM_FILE_TRESHOLD = "streamFileThreshold";
217 
218 	/**
219 	 * The "packedGitMmap" key
220 	 * @since 5.1.13
221 	 */
222 	public static final String CONFIG_KEY_PACKED_GIT_MMAP = "packedgitmmap";
223 
224 	/**
225 	 * The "packedGitWindowSize" key
226 	 * @since 5.1.13
227 	 */
228 	public static final String CONFIG_KEY_PACKED_GIT_WINDOWSIZE = "packedgitwindowsize";
229 
230 	/**
231 	 * The "packedGitLimit" key
232 	 * @since 5.1.13
233 	 */
234 	public static final String CONFIG_KEY_PACKED_GIT_LIMIT = "packedgitlimit";
235 
236 	/**
237 	 * The "packedGitOpenFiles" key
238 	 * @since 5.1.13
239 	 */
240 	public static final String CONFIG_KEY_PACKED_GIT_OPENFILES = "packedgitopenfiles";
241 
242 	/**
243 	 * The "packedGitUseStrongRefs" key
244 	 * @since 5.1.13
245 	 */
246 	public static final String CONFIG_KEY_PACKED_GIT_USE_STRONGREFS = "packedgitusestrongrefs";
247 
248 	/** The "remote" key */
249 	public static final String CONFIG_KEY_REMOTE = "remote";
250 
251 	/** The "merge" key */
252 	public static final String CONFIG_KEY_MERGE = "merge";
253 
254 	/** The "rebase" key */
255 	public static final String CONFIG_KEY_REBASE = "rebase";
256 
257 	/** The "url" key */
258 	public static final String CONFIG_KEY_URL = "url";
259 
260 	/** The "autosetupmerge" key */
261 	public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
262 
263 	/** The "autosetuprebase" key */
264 	public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
265 
266 	/**
267 	 * The "autostash" key
268 	 * @since 3.2
269 	 */
270 	public static final String CONFIG_KEY_AUTOSTASH = "autostash";
271 
272 	/** The "name" key */
273 	public static final String CONFIG_KEY_NAME = "name";
274 
275 	/** The "email" key */
276 	public static final String CONFIG_KEY_EMAIL = "email";
277 
278 	/** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
279 	public static final String CONFIG_KEY_FALSE = "false";
280 
281 	/** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
282 	public static final String CONFIG_KEY_TRUE = "true";
283 
284 	/**
285 	 * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
286 	 * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
287 	 */
288 	public static final String CONFIG_KEY_ALWAYS = "always";
289 
290 	/** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
291 	public static final String CONFIG_KEY_NEVER = "never";
292 
293 	/** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
294 	public static final String CONFIG_KEY_LOCAL = "local";
295 
296 	/** The "createchangeid" key */
297 	public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
298 
299 	/** The "defaultsourceref" key */
300 	public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
301 
302 	/** The "path" key */
303 	public static final String CONFIG_KEY_PATH = "path";
304 
305 	/** The "update" key */
306 	public static final String CONFIG_KEY_UPDATE = "update";
307 
308 	/**
309 	 * The "ignore" key
310 	 * @since 3.6
311 	 */
312 	public static final String CONFIG_KEY_IGNORE = "ignore";
313 
314 	/** The "compression" key */
315 	public static final String CONFIG_KEY_COMPRESSION = "compression";
316 
317 	/** The "indexversion" key */
318 	public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
319 
320 	/**
321 	 * The "hidedotfiles" key
322 	 * @since 3.5
323 	 */
324 	public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
325 
326 	/**
327 	 * The "dirnogitlinks" key
328 	 * @since 4.3
329 	 */
330 	public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
331 
332 	/** The "precomposeunicode" key */
333 	public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
334 
335 	/** The "pruneexpire" key */
336 	public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
337 
338 	/**
339 	 * The "prunepackexpire" key
340 	 * @since 4.3
341 	 */
342 	public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
343 
344 	/**
345 	 * The "logexpiry" key
346 	 *
347 	 * @since 4.7
348 	 */
349 	public static final String CONFIG_KEY_LOGEXPIRY = "logExpiry";
350 
351 	/**
352 	 * The "autodetach" key
353 	 *
354 	 * @since 4.7
355 	 */
356 	public static final String CONFIG_KEY_AUTODETACH = "autoDetach";
357 
358 	/**
359 	 * The "aggressiveDepth" key
360 	 * @since 3.6
361 	 */
362 	public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
363 
364 	/**
365 	 * The "aggressiveWindow" key
366 	 * @since 3.6
367 	 */
368 	public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
369 
370 	/** The "mergeoptions" key */
371 	public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
372 
373 	/** The "ff" key */
374 	public static final String CONFIG_KEY_FF = "ff";
375 
376 	/**
377 	 * The "checkstat" key
378 	 * @since 3.0
379 	 */
380 	public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
381 
382 	/**
383 	 * The "renamelimit" key in the "diff" section
384 	 * @since 3.0
385 	 */
386 	public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
387 
388 	/**
389 	 * The "trustfolderstat" key in the "core" section
390 	 * @since 3.6
391 	 */
392 	public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
393 
394 	/**
395 	 * The "supportsAtomicFileCreation" key in the "core" section
396 	 *
397 	 * @since 4.5
398 	 */
399 	public static final String CONFIG_KEY_SUPPORTSATOMICFILECREATION = "supportsatomicfilecreation";
400 
401 	/**
402 	 * The "noprefix" key in the "diff" section
403 	 * @since 3.0
404 	 */
405 	public static final String CONFIG_KEY_NOPREFIX = "noprefix";
406 
407 	/**
408 	 * A "renamelimit" value in the "diff" section
409 	 * @since 3.0
410 	 */
411 	public static final String CONFIG_RENAMELIMIT_COPY = "copy";
412 
413 	/**
414 	 * A "renamelimit" value in the "diff" section
415 	 * @since 3.0
416 	 */
417 	public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
418 
419 	/**
420 	 * The "renames" key in the "diff" section
421 	 * @since 3.0
422 	 */
423 	public static final String CONFIG_KEY_RENAMES = "renames";
424 
425 	/**
426 	 * The "inCoreLimit" key in the "merge" section. It's a size limit (bytes) used to
427 	 * control a file to be stored in {@code Heap} or {@code LocalFile} during the merge.
428 	 * @since 4.9
429 	 */
430 	public static final String CONFIG_KEY_IN_CORE_LIMIT = "inCoreLimit";
431 
432 	/**
433 	 * The "prune" key
434 	 * @since 3.3
435 	 */
436 	public static final String CONFIG_KEY_PRUNE = "prune";
437 
438 	/**
439 	 * The "streamBuffer" key
440 	 * @since 4.0
441 	 */
442 	public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
443 
444 	/**
445 	 * The "streamRatio" key
446 	 * @since 4.0
447 	 */
448 	public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
449 
450 	/**
451 	 * Flag in the filter section whether to use JGit's implementations of
452 	 * filters and hooks
453 	 * @since 4.6
454 	 */
455 	public static final String CONFIG_KEY_USEJGITBUILTIN = "useJGitBuiltin";
456 
457 	/**
458 	 * The "fetchRecurseSubmodules" key
459 	 * @since 4.7
460 	 */
461 	public static final String CONFIG_KEY_FETCH_RECURSE_SUBMODULES = "fetchRecurseSubmodules";
462 
463 	/**
464 	 * The "recurseSubmodules" key
465 	 * @since 4.7
466 	 */
467 	public static final String CONFIG_KEY_RECURSE_SUBMODULES = "recurseSubmodules";
468 
469 	/**
470 	 * The "required" key
471 	 * @since 4.11
472 	 */
473 	public static final String CONFIG_KEY_REQUIRED = "required";
474 
475 	/**
476 	 * The "lfs" section
477 	 * @since 4.11
478 	 */
479 	public static final String CONFIG_SECTION_LFS = "lfs";
480 
481 	/**
482 	 * The "i18n" section
483 	 *
484 	 * @since 5.2
485 	 */
486 	public static final String CONFIG_SECTION_I18N = "i18n";
487 
488 	/**
489 	 * The "logOutputEncoding" key
490 	 *
491 	 * @since 5.2
492 	 */
493 	public static final String CONFIG_KEY_LOG_OUTPUT_ENCODING = "logOutputEncoding";
494 
495 	/**
496 	 * The "filesystem" section
497 	 * @since 5.1.9
498 	 */
499 	public static final String CONFIG_FILESYSTEM_SECTION = "filesystem";
500 
501 	/**
502 	 * The "timestampResolution" key
503 	 * @since 5.1.9
504 	 */
505 	public static final String CONFIG_KEY_TIMESTAMP_RESOLUTION = "timestampResolution";
506 
507 	/**
508 	 * The "minRacyThreshold" key
509 	 * @since 5.1.9
510 	 */
511 	public static final String CONFIG_KEY_MIN_RACY_THRESHOLD = "minRacyThreshold";
512 
513 
514 	/**
515 	 * The "refStorage" key
516 	 *
517 	 * @since 5.6.2
518 	 */
519 	public static final String CONFIG_KEY_REF_STORAGE = "refStorage";
520 
521 	/**
522 	 * The "extensions" section
523 	 *
524 	 * @since 5.6.2
525 	 */
526 	public static final String CONFIG_EXTENSIONS_SECTION = "extensions";
527 
528 	/**
529 	 * The extensions.refStorage key
530 	 * @since 5.7
531 	 */
532 	public static final String CONFIG_KEY_REFSTORAGE = "refStorage";
533 
534 	/**
535 	 * The "reftable" refStorage format
536 	 * @since 5.7
537 	 */
538 	public static final String CONFIG_REF_STORAGE_REFTABLE = "reftable";
539 
540 	/**
541 	 * The "reftree" refStorage format
542 	 * @since 5.7
543 	 */
544 	public static final String CONFIG_REFSTORAGE_REFTREE = "reftree";
545 
546 	/**
547 	 * The "jmx" section
548 	 * @since 5.1.13
549 	 */
550 	public static final String CONFIG_JMX_SECTION = "jmx";
551 
552 	/**
553 	 * The "pack.bigfilethreshold" key
554 	 * @since 5.8
555 	 */
556 	public static final String CONFIG_KEY_BIGFILE_THRESHOLD = "bigfilethreshold";
557 
558 	/**
559 	 * The "pack.bitmapContiguousCommitCount" key
560 	 * @since 5.8
561 	 */
562 	public static final String CONFIG_KEY_BITMAP_CONTIGUOUS_COMMIT_COUNT = "bitmapcontiguouscommitcount";
563 
564 	/**
565 	 * The "pack.bitmapDistantCommitSpan" key
566 	 * @since 5.8
567 	 */
568 	public static final String CONFIG_KEY_BITMAP_DISTANT_COMMIT_SPAN = "bitmapdistantcommitspan";
569 
570 	/**
571 	 * The "pack.bitmapExcessiveBranchCount" key
572 	 * @since 5.8
573 	 */
574 	public static final String CONFIG_KEY_BITMAP_EXCESSIVE_BRANCH_COUNT = "bitmapexcessivebranchcount";
575 
576 	/**
577 	 * The "pack.bitmapInactiveBranchAgeInDays" key
578 	 * @since 5.8
579 	 */
580 	public static final String CONFIG_KEY_BITMAP_INACTIVE_BRANCH_AGE_INDAYS = "bitmapinactivebranchageindays";
581 
582 	/**
583 	 * The "pack.bitmapRecentCommitSpan" key
584 	 * @since 5.8
585 	 */
586 	public static final String CONFIG_KEY_BITMAP_RECENT_COMMIT_COUNT = "bitmaprecentcommitspan";
587 
588 	/**
589 	 * The "pack.buildBitmaps" key
590 	 * @since 5.8
591 	 */
592 	public static final String CONFIG_KEY_BUILD_BITMAPS = "buildbitmaps";
593 
594 	/**
595 	 * The "pack.cutDeltaChains" key
596 	 * @since 5.8
597 	 */
598 	public static final String CONFIG_KEY_CUT_DELTACHAINS = "cutdeltachains";
599 
600 	/**
601 	 * The "pack.deltaCacheLimit" key
602 	 * @since 5.8
603 	 */
604 	public static final String CONFIG_KEY_DELTA_CACHE_LIMIT = "deltacachelimit";
605 
606 	/**
607 	 * The "pack.deltaCacheSize" key
608 	 * @since 5.8
609 	 */
610 	public static final String CONFIG_KEY_DELTA_CACHE_SIZE = "deltacachesize";
611 
612 	/**
613 	 * The "pack.deltaCompression" key
614 	 * @since 5.8
615 	 */
616 	public static final String CONFIG_KEY_DELTA_COMPRESSION = "deltacompression";
617 
618 	/**
619 	 * The "pack.depth" key
620 	 * @since 5.8
621 	 */
622 	public static final String CONFIG_KEY_DEPTH = "depth";
623 
624 	/**
625 	 * The "pack.minSizePreventRacyPack" key
626 	 * @since 5.8
627 	 */
628 	public static final String CONFIG_KEY_MIN_SIZE_PREVENT_RACYPACK = "minsizepreventracypack";
629 
630 	/**
631 	 * The "pack.reuseDeltas" key
632 	 * @since 5.8
633 	 */
634 	public static final String CONFIG_KEY_REUSE_DELTAS = "reusedeltas";
635 
636 	/**
637 	 * The "pack.reuseObjects" key
638 	 * @since 5.8
639 	 */
640 	public static final String CONFIG_KEY_REUSE_OBJECTS = "reuseobjects";
641 
642 	/**
643 	 * The "pack.singlePack" key
644 	 * @since 5.8
645 	 */
646 	public static final String CONFIG_KEY_SINGLE_PACK = "singlepack";
647 
648 	/**
649 	 * The "pack.threads" key
650 	 * @since 5.8
651 	 */
652 	public static final String CONFIG_KEY_THREADS = "threads";
653 
654 	/**
655 	 * The "pack.waitPreventRacyPack" key
656 	 * @since 5.8
657 	 */
658 	public static final String CONFIG_KEY_WAIT_PREVENT_RACYPACK = "waitpreventracypack";
659 
660 	/**
661 	 * The "pack.window" key
662 	 * @since 5.8
663 	 */
664 	public static final String CONFIG_KEY_WINDOW = "window";
665 
666 	/**
667 	 * The "pack.windowMemory" key
668 	 * @since 5.8
669 	 */
670 	public static final String CONFIG_KEY_WINDOW_MEMORY = "windowmemory";
671 
672 	/**
673 	 * The "feature" section
674 	 *
675 	 * @since 5.9
676 	 */
677 	public static final String CONFIG_FEATURE_SECTION = "feature";
678 
679 	/**
680 	 * The "feature.manyFiles" key
681 	 *
682 	 * @since 5.9
683 	 */
684 	public static final String CONFIG_KEY_MANYFILES = "manyFiles";
685 
686 	/**
687 	 * The "index" section
688 	 *
689 	 * @since 5.9
690 	 */
691 	public static final String CONFIG_INDEX_SECTION = "index";
692 
693 	/**
694 	 * The "version" key
695 	 *
696 	 * @since 5.9
697 	 */
698 	public static final String CONFIG_KEY_VERSION = "version";
699 
700 }