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 	/** The "algorithm" key */
123 	public static final String CONFIG_KEY_ALGORITHM = "algorithm";
124 
125 	/** The "autocrlf" key */
126 	public static final String CONFIG_KEY_AUTOCRLF = "autocrlf";
127 
128 	/**
129 	 * The "auto" key
130 	 * @since 4.6
131 	 */
132 	public static final String CONFIG_KEY_AUTO = "auto";
133 
134 	/**
135 	 * The "autogc" key
136 	 * @since 4.6
137 	 */
138 	public static final String CONFIG_KEY_AUTOGC = "autogc";
139 
140 	/**
141 	 * The "autopacklimit" key
142 	 * @since 4.6
143 	 */
144 	public static final String CONFIG_KEY_AUTOPACKLIMIT = "autopacklimit";
145 
146 	/**
147 	 * The "eol" key
148 	 *
149 	 * @since 4.3
150 	 */
151 	public static final String CONFIG_KEY_EOL = "eol";
152 
153 	/** The "bare" key */
154 	public static final String CONFIG_KEY_BARE = "bare";
155 
156 	/** The "excludesfile" key */
157 	public static final String CONFIG_KEY_EXCLUDESFILE = "excludesfile";
158 
159 	/**
160 	 * The "attributesfile" key
161 	 *
162 	 * @since 3.7
163 	 */
164 	public static final String CONFIG_KEY_ATTRIBUTESFILE = "attributesfile";
165 
166 	/** The "filemode" key */
167 	public static final String CONFIG_KEY_FILEMODE = "filemode";
168 
169 	/** The "logallrefupdates" key */
170 	public static final String CONFIG_KEY_LOGALLREFUPDATES = "logallrefupdates";
171 
172 	/** The "repositoryformatversion" key */
173 	public static final String CONFIG_KEY_REPO_FORMAT_VERSION = "repositoryformatversion";
174 
175 	/** The "worktree" key */
176 	public static final String CONFIG_KEY_WORKTREE = "worktree";
177 
178 	/** The "blockLimit" key */
179 	public static final String CONFIG_KEY_BLOCK_LIMIT = "blockLimit";
180 
181 	/** The "blockSize" key */
182 	public static final String CONFIG_KEY_BLOCK_SIZE = "blockSize";
183 
184 	/**
185 	 * The "concurrencyLevel" key
186 	 *
187 	 * @since 4.6
188 	 */
189 	public static final String CONFIG_KEY_CONCURRENCY_LEVEL = "concurrencyLevel";
190 
191 	/** The "deltaBaseCacheLimit" key */
192 	public static final String CONFIG_KEY_DELTA_BASE_CACHE_LIMIT = "deltaBaseCacheLimit";
193 
194 	/**
195 	 * The "symlinks" key
196 	 * @since 3.3
197 	 */
198 	public static final String CONFIG_KEY_SYMLINKS = "symlinks";
199 
200 	/** The "streamFileThreshold" key */
201 	public static final String CONFIG_KEY_STREAM_FILE_TRESHOLD = "streamFileThreshold";
202 
203 	/**
204 	 * The "packedGitMmap" key
205 	 * @since 5.1.13
206 	 */
207 	public static final String CONFIG_KEY_PACKED_GIT_MMAP = "packedgitmmap";
208 
209 	/**
210 	 * The "packedGitWindowSize" key
211 	 * @since 5.1.13
212 	 */
213 	public static final String CONFIG_KEY_PACKED_GIT_WINDOWSIZE = "packedgitwindowsize";
214 
215 	/**
216 	 * The "packedGitLimit" key
217 	 * @since 5.1.13
218 	 */
219 	public static final String CONFIG_KEY_PACKED_GIT_LIMIT = "packedgitlimit";
220 
221 	/**
222 	 * The "packedGitOpenFiles" key
223 	 * @since 5.1.13
224 	 */
225 	public static final String CONFIG_KEY_PACKED_GIT_OPENFILES = "packedgitopenfiles";
226 
227 	/**
228 	 * The "packedGitUseStrongRefs" key
229 	 * @since 5.1.13
230 	 */
231 	public static final String CONFIG_KEY_PACKED_GIT_USE_STRONGREFS = "packedgitusestrongrefs";
232 
233 	/** The "remote" key */
234 	public static final String CONFIG_KEY_REMOTE = "remote";
235 
236 	/** The "merge" key */
237 	public static final String CONFIG_KEY_MERGE = "merge";
238 
239 	/** The "rebase" key */
240 	public static final String CONFIG_KEY_REBASE = "rebase";
241 
242 	/** The "url" key */
243 	public static final String CONFIG_KEY_URL = "url";
244 
245 	/** The "autosetupmerge" key */
246 	public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
247 
248 	/** The "autosetuprebase" key */
249 	public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
250 
251 	/**
252 	 * The "autostash" key
253 	 * @since 3.2
254 	 */
255 	public static final String CONFIG_KEY_AUTOSTASH = "autostash";
256 
257 	/** The "name" key */
258 	public static final String CONFIG_KEY_NAME = "name";
259 
260 	/** The "email" key */
261 	public static final String CONFIG_KEY_EMAIL = "email";
262 
263 	/** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
264 	public static final String CONFIG_KEY_FALSE = "false";
265 
266 	/** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
267 	public static final String CONFIG_KEY_TRUE = "true";
268 
269 	/**
270 	 * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
271 	 * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
272 	 */
273 	public static final String CONFIG_KEY_ALWAYS = "always";
274 
275 	/** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
276 	public static final String CONFIG_KEY_NEVER = "never";
277 
278 	/** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
279 	public static final String CONFIG_KEY_LOCAL = "local";
280 
281 	/** The "createchangeid" key */
282 	public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
283 
284 	/** The "defaultsourceref" key */
285 	public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
286 
287 	/** The "path" key */
288 	public static final String CONFIG_KEY_PATH = "path";
289 
290 	/** The "update" key */
291 	public static final String CONFIG_KEY_UPDATE = "update";
292 
293 	/**
294 	 * The "ignore" key
295 	 * @since 3.6
296 	 */
297 	public static final String CONFIG_KEY_IGNORE = "ignore";
298 
299 	/** The "compression" key */
300 	public static final String CONFIG_KEY_COMPRESSION = "compression";
301 
302 	/** The "indexversion" key */
303 	public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
304 
305 	/**
306 	 * The "hidedotfiles" key
307 	 * @since 3.5
308 	 */
309 	public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
310 
311 	/**
312 	 * The "dirnogitlinks" key
313 	 * @since 4.3
314 	 */
315 	public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
316 
317 	/** The "precomposeunicode" key */
318 	public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
319 
320 	/** The "pruneexpire" key */
321 	public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
322 
323 	/**
324 	 * The "prunepackexpire" key
325 	 * @since 4.3
326 	 */
327 	public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
328 
329 	/**
330 	 * The "logexpiry" key
331 	 *
332 	 * @since 4.7
333 	 */
334 	public static final String CONFIG_KEY_LOGEXPIRY = "logExpiry";
335 
336 	/**
337 	 * The "autodetach" key
338 	 *
339 	 * @since 4.7
340 	 */
341 	public static final String CONFIG_KEY_AUTODETACH = "autoDetach";
342 
343 	/**
344 	 * The "aggressiveDepth" key
345 	 * @since 3.6
346 	 */
347 	public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
348 
349 	/**
350 	 * The "aggressiveWindow" key
351 	 * @since 3.6
352 	 */
353 	public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
354 
355 	/** The "mergeoptions" key */
356 	public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
357 
358 	/** The "ff" key */
359 	public static final String CONFIG_KEY_FF = "ff";
360 
361 	/**
362 	 * The "checkstat" key
363 	 * @since 3.0
364 	 */
365 	public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
366 
367 	/**
368 	 * The "renamelimit" key in the "diff section"
369 	 * @since 3.0
370 	 */
371 	public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
372 
373 	/**
374 	 * The "trustfolderstat" key in the "core section"
375 	 * @since 3.6
376 	 */
377 	public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
378 
379 	/**
380 	 * The "supportsAtomicFileCreation" key in the "core section"
381 	 *
382 	 * @since 4.5
383 	 */
384 	public static final String CONFIG_KEY_SUPPORTSATOMICFILECREATION = "supportsatomicfilecreation";
385 
386 	/**
387 	 * The "noprefix" key in the "diff section"
388 	 * @since 3.0
389 	 */
390 	public static final String CONFIG_KEY_NOPREFIX = "noprefix";
391 
392 	/**
393 	 * A "renamelimit" value in the "diff section"
394 	 * @since 3.0
395 	 */
396 	public static final String CONFIG_RENAMELIMIT_COPY = "copy";
397 
398 	/**
399 	 * A "renamelimit" value in the "diff section"
400 	 * @since 3.0
401 	 */
402 	public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
403 
404 	/**
405 	 * The "renames" key in the "diff section"
406 	 * @since 3.0
407 	 */
408 	public static final String CONFIG_KEY_RENAMES = "renames";
409 
410 	/**
411 	 * The "inCoreLimit" key in the "merge section". It's a size limit (bytes) used to
412 	 * control a file to be stored in {@code Heap} or {@code LocalFile} during the merge.
413 	 * @since 4.9
414 	 */
415 	public static final String CONFIG_KEY_IN_CORE_LIMIT = "inCoreLimit";
416 
417 	/**
418 	 * The "prune" key
419 	 * @since 3.3
420 	 */
421 	public static final String CONFIG_KEY_PRUNE = "prune";
422 
423 	/**
424 	 * The "streamBuffer" key
425 	 * @since 4.0
426 	 */
427 	public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
428 
429 	/**
430 	 * The "streamRatio" key
431 	 * @since 4.0
432 	 */
433 	public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
434 
435 	/**
436 	 * Flag in the filter section whether to use JGit's implementations of
437 	 * filters and hooks
438 	 * @since 4.6
439 	 */
440 	public static final String CONFIG_KEY_USEJGITBUILTIN = "useJGitBuiltin";
441 
442 	/**
443 	 * The "fetchRecurseSubmodules" key
444 	 * @since 4.7
445 	 */
446 	public static final String CONFIG_KEY_FETCH_RECURSE_SUBMODULES = "fetchRecurseSubmodules";
447 
448 	/**
449 	 * The "recurseSubmodules" key
450 	 * @since 4.7
451 	 */
452 	public static final String CONFIG_KEY_RECURSE_SUBMODULES = "recurseSubmodules";
453 
454 	/**
455 	 * The "required" key
456 	 * @since 4.11
457 	 */
458 	public static final String CONFIG_KEY_REQUIRED = "required";
459 
460 	/**
461 	 * The "lfs" section
462 	 * @since 4.11
463 	 */
464 	public static final String CONFIG_SECTION_LFS = "lfs";
465 
466 	/**
467 	 * The "filesystem" section
468 	 * @since 5.1.9
469 	 */
470 	public static final String CONFIG_FILESYSTEM_SECTION = "filesystem";
471 
472 	/**
473 	 * The "timestampResolution" key
474 	 * @since 5.1.9
475 	 */
476 	public static final String CONFIG_KEY_TIMESTAMP_RESOLUTION = "timestampResolution";
477 
478 	/**
479 	 * The "minRacyThreshold" key
480 	 *
481 	 * @since 5.1.9
482 	 */
483 	public static final String CONFIG_KEY_MIN_RACY_THRESHOLD = "minRacyThreshold";
484 
485 	/**
486 	 * The "jmx" section
487 	 * @since 5.1.13
488 	 */
489 	public static final String CONFIG_JMX_SECTION = "jmx";
490 }