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-2013, 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 "format" key
97  	 * @since 5.2
98  	 */
99  	public static final String CONFIG_KEY_FORMAT = "format";
100 
101 	/**
102 	 * The "signingKey" key
103 	 * @since 5.2
104 	 */
105 	public static final String CONFIG_KEY_SIGNINGKEY = "signingKey";
106 
107 	/**
108 	 * The "commit" section
109 	 * @since 5.2
110 	 */
111 	public static final String CONFIG_COMMIT_SECTION = "commit";
112 
113 	/**
114 	 * The "gpgSign" key
115 	 * @since 5.2
116 	 */
117 	public static final String CONFIG_KEY_GPGSIGN = "gpgSign";
118 
119 	/**
120 	 * The "hooksPath" key.
121 	 * @since 5.6
122 	 */
123 	public static final String CONFIG_KEY_HOOKS_PATH = "hooksPath";
124 
125 	/**
126 	 * The "quotePath" key.
127 	 * @since 5.6
128 	 */
129 	public static final String CONFIG_KEY_QUOTE_PATH = "quotePath";
130 
131 	/** The "algorithm" key */
132 	public static final String CONFIG_KEY_ALGORITHM = "algorithm";
133 
134 	/** The "autocrlf" key */
135 	public static final String CONFIG_KEY_AUTOCRLF = "autocrlf";
136 
137 	/**
138 	 * The "auto" key
139 	 * @since 4.6
140 	 */
141 	public static final String CONFIG_KEY_AUTO = "auto";
142 
143 	/**
144 	 * The "autogc" key
145 	 * @since 4.6
146 	 */
147 	public static final String CONFIG_KEY_AUTOGC = "autogc";
148 
149 	/**
150 	 * The "autopacklimit" key
151 	 * @since 4.6
152 	 */
153 	public static final String CONFIG_KEY_AUTOPACKLIMIT = "autopacklimit";
154 
155 	/**
156 	 * The "eol" key
157 	 *
158 	 * @since 4.3
159 	 */
160 	public static final String CONFIG_KEY_EOL = "eol";
161 
162 	/** The "bare" key */
163 	public static final String CONFIG_KEY_BARE = "bare";
164 
165 	/** The "excludesfile" key */
166 	public static final String CONFIG_KEY_EXCLUDESFILE = "excludesfile";
167 
168 	/**
169 	 * The "attributesfile" key
170 	 *
171 	 * @since 3.7
172 	 */
173 	public static final String CONFIG_KEY_ATTRIBUTESFILE = "attributesfile";
174 
175 	/** The "filemode" key */
176 	public static final String CONFIG_KEY_FILEMODE = "filemode";
177 
178 	/** The "logallrefupdates" key */
179 	public static final String CONFIG_KEY_LOGALLREFUPDATES = "logallrefupdates";
180 
181 	/** The "repositoryformatversion" key */
182 	public static final String CONFIG_KEY_REPO_FORMAT_VERSION = "repositoryformatversion";
183 
184 	/** The "worktree" key */
185 	public static final String CONFIG_KEY_WORKTREE = "worktree";
186 
187 	/** The "blockLimit" key */
188 	public static final String CONFIG_KEY_BLOCK_LIMIT = "blockLimit";
189 
190 	/** The "blockSize" key */
191 	public static final String CONFIG_KEY_BLOCK_SIZE = "blockSize";
192 
193 	/**
194 	 * The "concurrencyLevel" key
195 	 *
196 	 * @since 4.6
197 	 */
198 	public static final String CONFIG_KEY_CONCURRENCY_LEVEL = "concurrencyLevel";
199 
200 	/** The "deltaBaseCacheLimit" key */
201 	public static final String CONFIG_KEY_DELTA_BASE_CACHE_LIMIT = "deltaBaseCacheLimit";
202 
203 	/**
204 	 * The "symlinks" key
205 	 * @since 3.3
206 	 */
207 	public static final String CONFIG_KEY_SYMLINKS = "symlinks";
208 
209 	/** The "streamFileThreshold" key */
210 	public static final String CONFIG_KEY_STREAM_FILE_TRESHOLD = "streamFileThreshold";
211 
212 	/**
213 	 * The "packedGitMmap" key
214 	 * @since 5.1.13
215 	 */
216 	public static final String CONFIG_KEY_PACKED_GIT_MMAP = "packedgitmmap";
217 
218 	/**
219 	 * The "packedGitWindowSize" key
220 	 * @since 5.1.13
221 	 */
222 	public static final String CONFIG_KEY_PACKED_GIT_WINDOWSIZE = "packedgitwindowsize";
223 
224 	/**
225 	 * The "packedGitLimit" key
226 	 * @since 5.1.13
227 	 */
228 	public static final String CONFIG_KEY_PACKED_GIT_LIMIT = "packedgitlimit";
229 
230 	/**
231 	 * The "packedGitOpenFiles" key
232 	 * @since 5.1.13
233 	 */
234 	public static final String CONFIG_KEY_PACKED_GIT_OPENFILES = "packedgitopenfiles";
235 
236 	/**
237 	 * The "packedGitUseStrongRefs" key
238 	 * @since 5.1.13
239 	 */
240 	public static final String CONFIG_KEY_PACKED_GIT_USE_STRONGREFS = "packedgitusestrongrefs";
241 
242 	/** The "remote" key */
243 	public static final String CONFIG_KEY_REMOTE = "remote";
244 
245 	/** The "merge" key */
246 	public static final String CONFIG_KEY_MERGE = "merge";
247 
248 	/** The "rebase" key */
249 	public static final String CONFIG_KEY_REBASE = "rebase";
250 
251 	/** The "url" key */
252 	public static final String CONFIG_KEY_URL = "url";
253 
254 	/** The "autosetupmerge" key */
255 	public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
256 
257 	/** The "autosetuprebase" key */
258 	public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
259 
260 	/**
261 	 * The "autostash" key
262 	 * @since 3.2
263 	 */
264 	public static final String CONFIG_KEY_AUTOSTASH = "autostash";
265 
266 	/** The "name" key */
267 	public static final String CONFIG_KEY_NAME = "name";
268 
269 	/** The "email" key */
270 	public static final String CONFIG_KEY_EMAIL = "email";
271 
272 	/** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
273 	public static final String CONFIG_KEY_FALSE = "false";
274 
275 	/** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
276 	public static final String CONFIG_KEY_TRUE = "true";
277 
278 	/**
279 	 * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
280 	 * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
281 	 */
282 	public static final String CONFIG_KEY_ALWAYS = "always";
283 
284 	/** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
285 	public static final String CONFIG_KEY_NEVER = "never";
286 
287 	/** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
288 	public static final String CONFIG_KEY_LOCAL = "local";
289 
290 	/** The "createchangeid" key */
291 	public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
292 
293 	/** The "defaultsourceref" key */
294 	public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
295 
296 	/** The "path" key */
297 	public static final String CONFIG_KEY_PATH = "path";
298 
299 	/** The "update" key */
300 	public static final String CONFIG_KEY_UPDATE = "update";
301 
302 	/**
303 	 * The "ignore" key
304 	 * @since 3.6
305 	 */
306 	public static final String CONFIG_KEY_IGNORE = "ignore";
307 
308 	/** The "compression" key */
309 	public static final String CONFIG_KEY_COMPRESSION = "compression";
310 
311 	/** The "indexversion" key */
312 	public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
313 
314 	/**
315 	 * The "hidedotfiles" key
316 	 * @since 3.5
317 	 */
318 	public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
319 
320 	/**
321 	 * The "dirnogitlinks" key
322 	 * @since 4.3
323 	 */
324 	public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
325 
326 	/** The "precomposeunicode" key */
327 	public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
328 
329 	/** The "pruneexpire" key */
330 	public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
331 
332 	/**
333 	 * The "prunepackexpire" key
334 	 * @since 4.3
335 	 */
336 	public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
337 
338 	/**
339 	 * The "logexpiry" key
340 	 *
341 	 * @since 4.7
342 	 */
343 	public static final String CONFIG_KEY_LOGEXPIRY = "logExpiry";
344 
345 	/**
346 	 * The "autodetach" key
347 	 *
348 	 * @since 4.7
349 	 */
350 	public static final String CONFIG_KEY_AUTODETACH = "autoDetach";
351 
352 	/**
353 	 * The "aggressiveDepth" key
354 	 * @since 3.6
355 	 */
356 	public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
357 
358 	/**
359 	 * The "aggressiveWindow" key
360 	 * @since 3.6
361 	 */
362 	public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
363 
364 	/** The "mergeoptions" key */
365 	public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
366 
367 	/** The "ff" key */
368 	public static final String CONFIG_KEY_FF = "ff";
369 
370 	/**
371 	 * The "checkstat" key
372 	 * @since 3.0
373 	 */
374 	public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
375 
376 	/**
377 	 * The "renamelimit" key in the "diff" section
378 	 * @since 3.0
379 	 */
380 	public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
381 
382 	/**
383 	 * The "trustfolderstat" key in the "core" section
384 	 * @since 3.6
385 	 */
386 	public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
387 
388 	/**
389 	 * The "supportsAtomicFileCreation" key in the "core" section
390 	 *
391 	 * @since 4.5
392 	 */
393 	public static final String CONFIG_KEY_SUPPORTSATOMICFILECREATION = "supportsatomicfilecreation";
394 
395 	/**
396 	 * The "noprefix" key in the "diff" section
397 	 * @since 3.0
398 	 */
399 	public static final String CONFIG_KEY_NOPREFIX = "noprefix";
400 
401 	/**
402 	 * A "renamelimit" value in the "diff" section
403 	 * @since 3.0
404 	 */
405 	public static final String CONFIG_RENAMELIMIT_COPY = "copy";
406 
407 	/**
408 	 * A "renamelimit" value in the "diff" section
409 	 * @since 3.0
410 	 */
411 	public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
412 
413 	/**
414 	 * The "renames" key in the "diff" section
415 	 * @since 3.0
416 	 */
417 	public static final String CONFIG_KEY_RENAMES = "renames";
418 
419 	/**
420 	 * The "inCoreLimit" key in the "merge" section. It's a size limit (bytes) used to
421 	 * control a file to be stored in {@code Heap} or {@code LocalFile} during the merge.
422 	 * @since 4.9
423 	 */
424 	public static final String CONFIG_KEY_IN_CORE_LIMIT = "inCoreLimit";
425 
426 	/**
427 	 * The "prune" key
428 	 * @since 3.3
429 	 */
430 	public static final String CONFIG_KEY_PRUNE = "prune";
431 
432 	/**
433 	 * The "streamBuffer" key
434 	 * @since 4.0
435 	 */
436 	public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
437 
438 	/**
439 	 * The "streamRatio" key
440 	 * @since 4.0
441 	 */
442 	public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
443 
444 	/**
445 	 * Flag in the filter section whether to use JGit's implementations of
446 	 * filters and hooks
447 	 * @since 4.6
448 	 */
449 	public static final String CONFIG_KEY_USEJGITBUILTIN = "useJGitBuiltin";
450 
451 	/**
452 	 * The "fetchRecurseSubmodules" key
453 	 * @since 4.7
454 	 */
455 	public static final String CONFIG_KEY_FETCH_RECURSE_SUBMODULES = "fetchRecurseSubmodules";
456 
457 	/**
458 	 * The "recurseSubmodules" key
459 	 * @since 4.7
460 	 */
461 	public static final String CONFIG_KEY_RECURSE_SUBMODULES = "recurseSubmodules";
462 
463 	/**
464 	 * The "required" key
465 	 * @since 4.11
466 	 */
467 	public static final String CONFIG_KEY_REQUIRED = "required";
468 
469 	/**
470 	 * The "lfs" section
471 	 * @since 4.11
472 	 */
473 	public static final String CONFIG_SECTION_LFS = "lfs";
474 
475 	/**
476 	 * The "i18n" section
477 	 *
478 	 * @since 5.2
479 	 */
480 	public static final String CONFIG_SECTION_I18N = "i18n";
481 
482 	/**
483 	 * The "logOutputEncoding" key
484 	 *
485 	 * @since 5.2
486 	 */
487 	public static final String CONFIG_KEY_LOG_OUTPUT_ENCODING = "logOutputEncoding";
488 
489 	/**
490 	 * The "filesystem" section
491 	 * @since 5.1.9
492 	 */
493 	public static final String CONFIG_FILESYSTEM_SECTION = "filesystem";
494 
495 	/**
496 	 * The "timestampResolution" key
497 	 * @since 5.1.9
498 	 */
499 	public static final String CONFIG_KEY_TIMESTAMP_RESOLUTION = "timestampResolution";
500 
501 	/**
502 	 * The "minRacyThreshold" key
503 	 * @since 5.1.9
504 	 */
505 	public static final String CONFIG_KEY_MIN_RACY_THRESHOLD = "minRacyThreshold";
506 
507 
508 	/**
509 	 * The "refStorage" key
510 	 *
511 	 * @since 5.6.2
512 	 */
513 	public static final String CONFIG_KEY_REF_STORAGE = "refStorage";
514 
515 	/**
516 	 * The "extensions" section
517 	 *
518 	 * @since 5.6.2
519 	 */
520 	public static final String CONFIG_EXTENSIONS_SECTION = "extensions";
521 
522 	/**
523 	 * The extensions.refStorage key
524 	 * @since 5.7
525 	 */
526 	public static final String CONFIG_KEY_REFSTORAGE = "refStorage";
527 
528 	/**
529 	 * The "reftable" refStorage format
530 	 * @since 5.7
531 	 */
532 	public static final String CONFIG_REF_STORAGE_REFTABLE = "reftable";
533 
534 	/**
535 	 * The "reftree" refStorage format
536 	 * @since 5.7
537 	 */
538 	public static final String CONFIG_REFSTORAGE_REFTREE = "reftree";
539 
540 	/**
541 	 * The "jmx" section
542 	 * @since 5.1.13
543 	 */
544 	public static final String CONFIG_JMX_SECTION = "jmx";
545 
546 	/**
547 	 * The "pack.bigfilethreshold" key
548 	 * @since 5.8
549 	 */
550 	public static final String CONFIG_KEY_BIGFILE_THRESHOLD = "bigfilethreshold";
551 
552 	/**
553 	 * The "pack.bitmapContiguousCommitCount" key
554 	 * @since 5.8
555 	 */
556 	public static final String CONFIG_KEY_BITMAP_CONTIGUOUS_COMMIT_COUNT = "bitmapcontiguouscommitcount";
557 
558 	/**
559 	 * The "pack.bitmapDistantCommitSpan" key
560 	 * @since 5.8
561 	 */
562 	public static final String CONFIG_KEY_BITMAP_DISTANT_COMMIT_SPAN = "bitmapdistantcommitspan";
563 
564 	/**
565 	 * The "pack.bitmapExcessiveBranchCount" key
566 	 * @since 5.8
567 	 */
568 	public static final String CONFIG_KEY_BITMAP_EXCESSIVE_BRANCH_COUNT = "bitmapexcessivebranchcount";
569 
570 	/**
571 	 * The "pack.bitmapInactiveBranchAgeInDays" key
572 	 * @since 5.8
573 	 */
574 	public static final String CONFIG_KEY_BITMAP_INACTIVE_BRANCH_AGE_INDAYS = "bitmapinactivebranchageindays";
575 
576 	/**
577 	 * The "pack.bitmapRecentCommitSpan" key
578 	 * @since 5.8
579 	 */
580 	public static final String CONFIG_KEY_BITMAP_RECENT_COMMIT_COUNT = "bitmaprecentcommitspan";
581 
582 	/**
583 	 * The "pack.buildBitmaps" key
584 	 * @since 5.8
585 	 */
586 	public static final String CONFIG_KEY_BUILD_BITMAPS = "buildbitmaps";
587 
588 	/**
589 	 * The "pack.cutDeltaChains" key
590 	 * @since 5.8
591 	 */
592 	public static final String CONFIG_KEY_CUT_DELTACHAINS = "cutdeltachains";
593 
594 	/**
595 	 * The "pack.deltaCacheLimit" key
596 	 * @since 5.8
597 	 */
598 	public static final String CONFIG_KEY_DELTA_CACHE_LIMIT = "deltacachelimit";
599 
600 	/**
601 	 * The "pack.deltaCacheSize" key
602 	 * @since 5.8
603 	 */
604 	public static final String CONFIG_KEY_DELTA_CACHE_SIZE = "deltacachesize";
605 
606 	/**
607 	 * The "pack.deltaCompression" key
608 	 * @since 5.8
609 	 */
610 	public static final String CONFIG_KEY_DELTA_COMPRESSION = "deltacompression";
611 
612 	/**
613 	 * The "pack.depth" key
614 	 * @since 5.8
615 	 */
616 	public static final String CONFIG_KEY_DEPTH = "depth";
617 
618 	/**
619 	 * The "pack.minSizePreventRacyPack" key
620 	 * @since 5.8
621 	 */
622 	public static final String CONFIG_KEY_MIN_SIZE_PREVENT_RACYPACK = "minsizepreventracypack";
623 
624 	/**
625 	 * The "pack.reuseDeltas" key
626 	 * @since 5.8
627 	 */
628 	public static final String CONFIG_KEY_REUSE_DELTAS = "reusedeltas";
629 
630 	/**
631 	 * The "pack.reuseObjects" key
632 	 * @since 5.8
633 	 */
634 	public static final String CONFIG_KEY_REUSE_OBJECTS = "reuseobjects";
635 
636 	/**
637 	 * The "pack.singlePack" key
638 	 * @since 5.8
639 	 */
640 	public static final String CONFIG_KEY_SINGLE_PACK = "singlepack";
641 
642 	/**
643 	 * The "pack.threads" key
644 	 * @since 5.8
645 	 */
646 	public static final String CONFIG_KEY_THREADS = "threads";
647 
648 	/**
649 	 * The "pack.waitPreventRacyPack" key
650 	 * @since 5.8
651 	 */
652 	public static final String CONFIG_KEY_WAIT_PREVENT_RACYPACK = "waitpreventracypack";
653 
654 	/**
655 	 * The "pack.window" key
656 	 * @since 5.8
657 	 */
658 	public static final String CONFIG_KEY_WINDOW = "window";
659 
660 	/**
661 	 * The "pack.windowMemory" key
662 	 * @since 5.8
663 	 */
664 	public static final String CONFIG_KEY_WINDOW_MEMORY = "windowmemory";
665 }