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
5    * and other copyright owners as documented in the project's IP log.
6    *
7    * This program and the accompanying materials are made available
8    * under the terms of the Eclipse Distribution License v1.0 which
9    * accompanies this distribution, is reproduced below, and is
10   * available at http://www.eclipse.org/org/documents/edl-v10.php
11   *
12   * All rights reserved.
13   *
14   * Redistribution and use in source and binary forms, with or
15   * without modification, are permitted provided that the following
16   * conditions are met:
17   *
18   * - Redistributions of source code must retain the above copyright
19   *   notice, this list of conditions and the following disclaimer.
20   *
21   * - Redistributions in binary form must reproduce the above
22   *   copyright notice, this list of conditions and the following
23   *   disclaimer in the documentation and/or other materials provided
24   *   with the distribution.
25   *
26   * - Neither the name of the Eclipse Foundation, Inc. nor the
27   *   names of its contributors may be used to endorse or promote
28   *   products derived from this software without specific prior
29   *   written permission.
30   *
31   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
32   * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
33   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
34   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
35   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
36   * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
37   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
38   * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
39   * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
40   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
41   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
42   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
43   * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44   */
45  package org.eclipse.jgit.lib;
46  
47  /**
48   * Constants for use with the Configuration classes: section names,
49   * configuration keys
50   */
51  @SuppressWarnings("nls")
52  public final class ConfigConstants {
53  	/** The "core" section */
54  	public static final String CONFIG_CORE_SECTION = "core";
55  
56  	/** The "branch" section */
57  	public static final String CONFIG_BRANCH_SECTION = "branch";
58  
59  	/** The "remote" section */
60  	public static final String CONFIG_REMOTE_SECTION = "remote";
61  
62  	/** The "diff" section */
63  	public static final String CONFIG_DIFF_SECTION = "diff";
64  
65  	/** The "dfs" section */
66  	public static final String CONFIG_DFS_SECTION = "dfs";
67  
68  	/**
69  	 * The "receive" section
70  	 * @since 4.6
71  	 */
72  	public static final String CONFIG_RECEIVE_SECTION = "receive";
73  
74  	/** The "user" section */
75  	public static final String CONFIG_USER_SECTION = "user";
76  
77  	/** The "gerrit" section */
78  	public static final String CONFIG_GERRIT_SECTION = "gerrit";
79  
80  	/** The "workflow" section */
81  	public static final String CONFIG_WORKFLOW_SECTION = "workflow";
82  
83  	/** The "submodule" section */
84  	public static final String CONFIG_SUBMODULE_SECTION = "submodule";
85  
86  	/**
87  	 * The "rebase" section
88  	 * @since 3.2
89  	 */
90  	public static final String CONFIG_REBASE_SECTION = "rebase";
91  
92  	/** The "gc" section */
93  	public static final String CONFIG_GC_SECTION = "gc";
94  
95  	/** The "pack" section */
96  	public static final String CONFIG_PACK_SECTION = "pack";
97  
98  	/**
99  	 * The "fetch" section
100 	 * @since 3.3
101 	 */
102 	public static final String CONFIG_FETCH_SECTION = "fetch";
103 
104 	/**
105 	 * The "pull" section
106 	 * @since 3.5
107 	 */
108 	public static final String CONFIG_PULL_SECTION = "pull";
109 
110 	/**
111 	 * The "merge" section
112 	 * @since 4.9
113 	 */
114 	public static final String CONFIG_MERGE_SECTION = "merge";
115 
116 	/**
117 	 * The "filter" section
118 	 * @since 4.6
119 	 */
120 	public static final String CONFIG_FILTER_SECTION = "filter";
121 
122 	/**
123 	 * The "gpg" section
124 	 * @since 5.2
125 	 */
126 	public static final String CONFIG_GPG_SECTION = "gpg";
127 
128 	/**
129 	 * The "format" key
130 	 * @since 5.2
131 	 */
132 	public static final String CONFIG_KEY_FORMAT = "format";
133 
134 	/**
135 	 * The "signingKey" key
136 	 * @since 5.2
137 	 */
138 	public static final String CONFIG_KEY_SIGNINGKEY = "signingKey";
139 
140 	/**
141 	 * The "commit" section
142 	 * @since 5.2
143 	 */
144 	public static final String CONFIG_COMMIT_SECTION = "commit";
145 
146 	/**
147 	 * The "gpgSign" key
148 	 * @since 5.2
149 	 */
150 	public static final String CONFIG_KEY_GPGSIGN = "gpgSign";
151 
152 	/**
153 	 * The "hooksPath" key.
154 	 * @since 5.6
155 	 */
156 	public static final String CONFIG_KEY_HOOKS_PATH = "hooksPath";
157 
158 	/**
159 	 * The "quotePath" key.
160 	 * @since 5.6
161 	 */
162 	public static final String CONFIG_KEY_QUOTE_PATH = "quotePath";
163 
164 	/** The "algorithm" key */
165 	public static final String CONFIG_KEY_ALGORITHM = "algorithm";
166 
167 	/** The "autocrlf" key */
168 	public static final String CONFIG_KEY_AUTOCRLF = "autocrlf";
169 
170 	/**
171 	 * The "auto" key
172 	 * @since 4.6
173 	 */
174 	public static final String CONFIG_KEY_AUTO = "auto";
175 
176 	/**
177 	 * The "autogc" key
178 	 * @since 4.6
179 	 */
180 	public static final String CONFIG_KEY_AUTOGC = "autogc";
181 
182 	/**
183 	 * The "autopacklimit" key
184 	 * @since 4.6
185 	 */
186 	public static final String CONFIG_KEY_AUTOPACKLIMIT = "autopacklimit";
187 
188 	/**
189 	 * The "eol" key
190 	 *
191 	 * @since 4.3
192 	 */
193 	public static final String CONFIG_KEY_EOL = "eol";
194 
195 	/** The "bare" key */
196 	public static final String CONFIG_KEY_BARE = "bare";
197 
198 	/** The "excludesfile" key */
199 	public static final String CONFIG_KEY_EXCLUDESFILE = "excludesfile";
200 
201 	/**
202 	 * The "attributesfile" key
203 	 *
204 	 * @since 3.7
205 	 */
206 	public static final String CONFIG_KEY_ATTRIBUTESFILE = "attributesfile";
207 
208 	/** The "filemode" key */
209 	public static final String CONFIG_KEY_FILEMODE = "filemode";
210 
211 	/** The "logallrefupdates" key */
212 	public static final String CONFIG_KEY_LOGALLREFUPDATES = "logallrefupdates";
213 
214 	/** The "repositoryformatversion" key */
215 	public static final String CONFIG_KEY_REPO_FORMAT_VERSION = "repositoryformatversion";
216 
217 	/** The "worktree" key */
218 	public static final String CONFIG_KEY_WORKTREE = "worktree";
219 
220 	/** The "blockLimit" key */
221 	public static final String CONFIG_KEY_BLOCK_LIMIT = "blockLimit";
222 
223 	/** The "blockSize" key */
224 	public static final String CONFIG_KEY_BLOCK_SIZE = "blockSize";
225 
226 	/**
227 	 * The "concurrencyLevel" key
228 	 *
229 	 * @since 4.6
230 	 */
231 	public static final String CONFIG_KEY_CONCURRENCY_LEVEL = "concurrencyLevel";
232 
233 	/** The "deltaBaseCacheLimit" key */
234 	public static final String CONFIG_KEY_DELTA_BASE_CACHE_LIMIT = "deltaBaseCacheLimit";
235 
236 	/**
237 	 * The "symlinks" key
238 	 * @since 3.3
239 	 */
240 	public static final String CONFIG_KEY_SYMLINKS = "symlinks";
241 
242 	/** The "streamFileThreshold" key */
243 	public static final String CONFIG_KEY_STREAM_FILE_TRESHOLD = "streamFileThreshold";
244 
245 	/** The "remote" key */
246 	public static final String CONFIG_KEY_REMOTE = "remote";
247 
248 	/** The "merge" key */
249 	public static final String CONFIG_KEY_MERGE = "merge";
250 
251 	/** The "rebase" key */
252 	public static final String CONFIG_KEY_REBASE = "rebase";
253 
254 	/** The "url" key */
255 	public static final String CONFIG_KEY_URL = "url";
256 
257 	/** The "autosetupmerge" key */
258 	public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
259 
260 	/** The "autosetuprebase" key */
261 	public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
262 
263 	/**
264 	 * The "autostash" key
265 	 * @since 3.2
266 	 */
267 	public static final String CONFIG_KEY_AUTOSTASH = "autostash";
268 
269 	/** The "name" key */
270 	public static final String CONFIG_KEY_NAME = "name";
271 
272 	/** The "email" key */
273 	public static final String CONFIG_KEY_EMAIL = "email";
274 
275 	/** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
276 	public static final String CONFIG_KEY_FALSE = "false";
277 
278 	/** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
279 	public static final String CONFIG_KEY_TRUE = "true";
280 
281 	/**
282 	 * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
283 	 * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
284 	 */
285 	public static final String CONFIG_KEY_ALWAYS = "always";
286 
287 	/** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
288 	public static final String CONFIG_KEY_NEVER = "never";
289 
290 	/** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
291 	public static final String CONFIG_KEY_LOCAL = "local";
292 
293 	/** The "createchangeid" key */
294 	public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
295 
296 	/** The "defaultsourceref" key */
297 	public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
298 
299 	/** The "path" key */
300 	public static final String CONFIG_KEY_PATH = "path";
301 
302 	/** The "update" key */
303 	public static final String CONFIG_KEY_UPDATE = "update";
304 
305 	/**
306 	 * The "ignore" key
307 	 * @since 3.6
308 	 */
309 	public static final String CONFIG_KEY_IGNORE = "ignore";
310 
311 	/** The "compression" key */
312 	public static final String CONFIG_KEY_COMPRESSION = "compression";
313 
314 	/** The "indexversion" key */
315 	public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
316 
317 	/**
318 	 * The "hidedotfiles" key
319 	 * @since 3.5
320 	 */
321 	public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
322 
323 	/**
324 	 * The "dirnogitlinks" key
325 	 * @since 4.3
326 	 */
327 	public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
328 
329 	/** The "precomposeunicode" key */
330 	public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
331 
332 	/** The "pruneexpire" key */
333 	public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
334 
335 	/**
336 	 * The "prunepackexpire" key
337 	 * @since 4.3
338 	 */
339 	public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
340 
341 	/**
342 	 * The "logexpiry" key
343 	 *
344 	 * @since 4.7
345 	 */
346 	public static final String CONFIG_KEY_LOGEXPIRY = "logExpiry";
347 
348 	/**
349 	 * The "autodetach" key
350 	 *
351 	 * @since 4.7
352 	 */
353 	public static final String CONFIG_KEY_AUTODETACH = "autoDetach";
354 
355 	/**
356 	 * The "aggressiveDepth" key
357 	 * @since 3.6
358 	 */
359 	public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
360 
361 	/**
362 	 * The "aggressiveWindow" key
363 	 * @since 3.6
364 	 */
365 	public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
366 
367 	/** The "mergeoptions" key */
368 	public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
369 
370 	/** The "ff" key */
371 	public static final String CONFIG_KEY_FF = "ff";
372 
373 	/**
374 	 * The "checkstat" key
375 	 * @since 3.0
376 	 */
377 	public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
378 
379 	/**
380 	 * The "renamelimit" key in the "diff" section
381 	 * @since 3.0
382 	 */
383 	public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
384 
385 	/**
386 	 * The "trustfolderstat" key in the "core" section
387 	 * @since 3.6
388 	 */
389 	public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
390 
391 	/**
392 	 * The "supportsAtomicFileCreation" key in the "core" section
393 	 *
394 	 * @since 4.5
395 	 */
396 	public static final String CONFIG_KEY_SUPPORTSATOMICFILECREATION = "supportsatomicfilecreation";
397 
398 	/**
399 	 * The "noprefix" key in the "diff" section
400 	 * @since 3.0
401 	 */
402 	public static final String CONFIG_KEY_NOPREFIX = "noprefix";
403 
404 	/**
405 	 * A "renamelimit" value in the "diff" section
406 	 * @since 3.0
407 	 */
408 	public static final String CONFIG_RENAMELIMIT_COPY = "copy";
409 
410 	/**
411 	 * A "renamelimit" value in the "diff" section
412 	 * @since 3.0
413 	 */
414 	public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
415 
416 	/**
417 	 * The "renames" key in the "diff" section
418 	 * @since 3.0
419 	 */
420 	public static final String CONFIG_KEY_RENAMES = "renames";
421 
422 	/**
423 	 * The "inCoreLimit" key in the "merge" section. It's a size limit (bytes) used to
424 	 * control a file to be stored in {@code Heap} or {@code LocalFile} during the merge.
425 	 * @since 4.9
426 	 */
427 	public static final String CONFIG_KEY_IN_CORE_LIMIT = "inCoreLimit";
428 
429 	/**
430 	 * The "prune" key
431 	 * @since 3.3
432 	 */
433 	public static final String CONFIG_KEY_PRUNE = "prune";
434 
435 	/**
436 	 * The "streamBuffer" key
437 	 * @since 4.0
438 	 */
439 	public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
440 
441 	/**
442 	 * The "streamRatio" key
443 	 * @since 4.0
444 	 */
445 	public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
446 
447 	/**
448 	 * Flag in the filter section whether to use JGit's implementations of
449 	 * filters and hooks
450 	 * @since 4.6
451 	 */
452 	public static final String CONFIG_KEY_USEJGITBUILTIN = "useJGitBuiltin";
453 
454 	/**
455 	 * The "fetchRecurseSubmodules" key
456 	 * @since 4.7
457 	 */
458 	public static final String CONFIG_KEY_FETCH_RECURSE_SUBMODULES = "fetchRecurseSubmodules";
459 
460 	/**
461 	 * The "recurseSubmodules" key
462 	 * @since 4.7
463 	 */
464 	public static final String CONFIG_KEY_RECURSE_SUBMODULES = "recurseSubmodules";
465 
466 	/**
467 	 * The "required" key
468 	 * @since 4.11
469 	 */
470 	public static final String CONFIG_KEY_REQUIRED = "required";
471 
472 	/**
473 	 * The "lfs" section
474 	 * @since 4.11
475 	 */
476 	public static final String CONFIG_SECTION_LFS = "lfs";
477 
478 	/**
479 	 * The "i18n" section
480 	 *
481 	 * @since 5.2
482 	 */
483 	public static final String CONFIG_SECTION_I18N = "i18n";
484 
485 	/**
486 	 * The "logOutputEncoding" key
487 	 *
488 	 * @since 5.2
489 	 */
490 	public static final String CONFIG_KEY_LOG_OUTPUT_ENCODING = "logOutputEncoding";
491 
492 	/**
493 	 * The "filesystem" section
494 	 * @since 5.1.9
495 	 */
496 	public static final String CONFIG_FILESYSTEM_SECTION = "filesystem";
497 
498 	/**
499 	 * The "timestampResolution" key
500 	 * @since 5.1.9
501 	 */
502 	public static final String CONFIG_KEY_TIMESTAMP_RESOLUTION = "timestampResolution";
503 
504 	/**
505 	 * The "minRacyThreshold" key
506 	 *
507 	 * @since 5.1.9
508 	 */
509 	public static final String CONFIG_KEY_MIN_RACY_THRESHOLD = "minRacyThreshold";
510 }