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 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 	/** The "remote" key */
204 	public static final String CONFIG_KEY_REMOTE = "remote";
205 
206 	/** The "merge" key */
207 	public static final String CONFIG_KEY_MERGE = "merge";
208 
209 	/** The "rebase" key */
210 	public static final String CONFIG_KEY_REBASE = "rebase";
211 
212 	/** The "url" key */
213 	public static final String CONFIG_KEY_URL = "url";
214 
215 	/** The "autosetupmerge" key */
216 	public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
217 
218 	/** The "autosetuprebase" key */
219 	public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
220 
221 	/**
222 	 * The "autostash" key
223 	 * @since 3.2
224 	 */
225 	public static final String CONFIG_KEY_AUTOSTASH = "autostash";
226 
227 	/** The "name" key */
228 	public static final String CONFIG_KEY_NAME = "name";
229 
230 	/** The "email" key */
231 	public static final String CONFIG_KEY_EMAIL = "email";
232 
233 	/** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
234 	public static final String CONFIG_KEY_FALSE = "false";
235 
236 	/** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
237 	public static final String CONFIG_KEY_TRUE = "true";
238 
239 	/**
240 	 * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
241 	 * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
242 	 */
243 	public static final String CONFIG_KEY_ALWAYS = "always";
244 
245 	/** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
246 	public static final String CONFIG_KEY_NEVER = "never";
247 
248 	/** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
249 	public static final String CONFIG_KEY_LOCAL = "local";
250 
251 	/** The "createchangeid" key */
252 	public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
253 
254 	/** The "defaultsourceref" key */
255 	public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
256 
257 	/** The "path" key */
258 	public static final String CONFIG_KEY_PATH = "path";
259 
260 	/** The "update" key */
261 	public static final String CONFIG_KEY_UPDATE = "update";
262 
263 	/**
264 	 * The "ignore" key
265 	 * @since 3.6
266 	 */
267 	public static final String CONFIG_KEY_IGNORE = "ignore";
268 
269 	/** The "compression" key */
270 	public static final String CONFIG_KEY_COMPRESSION = "compression";
271 
272 	/** The "indexversion" key */
273 	public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
274 
275 	/**
276 	 * The "hidedotfiles" key
277 	 * @since 3.5
278 	 */
279 	public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
280 
281 	/**
282 	 * The "dirnogitlinks" key
283 	 * @since 4.3
284 	 */
285 	public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
286 
287 	/** The "precomposeunicode" key */
288 	public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
289 
290 	/** The "pruneexpire" key */
291 	public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
292 
293 	/**
294 	 * The "prunepackexpire" key
295 	 * @since 4.3
296 	 */
297 	public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
298 
299 	/**
300 	 * The "logexpiry" key
301 	 *
302 	 * @since 4.7
303 	 */
304 	public static final String CONFIG_KEY_LOGEXPIRY = "logExpiry";
305 
306 	/**
307 	 * The "autodetach" key
308 	 *
309 	 * @since 4.7
310 	 */
311 	public static final String CONFIG_KEY_AUTODETACH = "autoDetach";
312 
313 	/**
314 	 * The "aggressiveDepth" key
315 	 * @since 3.6
316 	 */
317 	public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
318 
319 	/**
320 	 * The "aggressiveWindow" key
321 	 * @since 3.6
322 	 */
323 	public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
324 
325 	/** The "mergeoptions" key */
326 	public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
327 
328 	/** The "ff" key */
329 	public static final String CONFIG_KEY_FF = "ff";
330 
331 	/**
332 	 * The "checkstat" key
333 	 * @since 3.0
334 	 */
335 	public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
336 
337 	/**
338 	 * The "renamelimit" key in the "diff section"
339 	 * @since 3.0
340 	 */
341 	public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
342 
343 	/**
344 	 * The "trustfolderstat" key in the "core section"
345 	 * @since 3.6
346 	 */
347 	public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
348 
349 	/**
350 	 * The "supportsAtomicFileCreation" key in the "core section"
351 	 *
352 	 * @since 4.5
353 	 */
354 	public static final String CONFIG_KEY_SUPPORTSATOMICFILECREATION = "supportsatomicfilecreation";
355 
356 	/**
357 	 * The "noprefix" key in the "diff section"
358 	 * @since 3.0
359 	 */
360 	public static final String CONFIG_KEY_NOPREFIX = "noprefix";
361 
362 	/**
363 	 * A "renamelimit" value in the "diff section"
364 	 * @since 3.0
365 	 */
366 	public static final String CONFIG_RENAMELIMIT_COPY = "copy";
367 
368 	/**
369 	 * A "renamelimit" value in the "diff section"
370 	 * @since 3.0
371 	 */
372 	public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
373 
374 	/**
375 	 * The "renames" key in the "diff section"
376 	 * @since 3.0
377 	 */
378 	public static final String CONFIG_KEY_RENAMES = "renames";
379 
380 	/**
381 	 * The "inCoreLimit" key in the "merge section". It's a size limit (bytes) used to
382 	 * control a file to be stored in {@code Heap} or {@code LocalFile} during the merge.
383 	 * @since 4.9
384 	 */
385 	public static final String CONFIG_KEY_IN_CORE_LIMIT = "inCoreLimit";
386 
387 	/**
388 	 * The "prune" key
389 	 * @since 3.3
390 	 */
391 	public static final String CONFIG_KEY_PRUNE = "prune";
392 
393 	/**
394 	 * The "streamBuffer" key
395 	 * @since 4.0
396 	 */
397 	public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
398 
399 	/**
400 	 * The "streamRatio" key
401 	 * @since 4.0
402 	 */
403 	public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
404 
405 	/**
406 	 * Flag in the filter section whether to use JGit's implementations of
407 	 * filters and hooks
408 	 * @since 4.6
409 	 */
410 	public static final String CONFIG_KEY_USEJGITBUILTIN = "useJGitBuiltin";
411 
412 	/**
413 	 * The "fetchRecurseSubmodules" key
414 	 * @since 4.7
415 	 */
416 	public static final String CONFIG_KEY_FETCH_RECURSE_SUBMODULES = "fetchRecurseSubmodules";
417 
418 	/**
419 	 * The "recurseSubmodules" key
420 	 * @since 4.7
421 	 */
422 	public static final String CONFIG_KEY_RECURSE_SUBMODULES = "recurseSubmodules";
423 
424 	/**
425 	 * The "required" key
426 	 * @since 4.11
427 	 */
428 	public static final String CONFIG_KEY_REQUIRED = "required";
429 
430 	/**
431 	 * The "lfs" section
432 	 * @since 4.11
433 	 */
434 	public static final String CONFIG_SECTION_LFS = "lfs";
435 }