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 "filter" section
112 	 * @since 4.6
113 	 */
114 	public static final String CONFIG_FILTER_SECTION = "filter";
115 
116 	/** The "algorithm" key */
117 	public static final String CONFIG_KEY_ALGORITHM = "algorithm";
118 
119 	/** The "autocrlf" key */
120 	public static final String CONFIG_KEY_AUTOCRLF = "autocrlf";
121 
122 	/**
123 	 * The "auto" key
124 	 * @since 4.6
125 	 */
126 	public static final String CONFIG_KEY_AUTO = "auto";
127 
128 	/**
129 	 * The "autogc" key
130 	 * @since 4.6
131 	 */
132 	public static final String CONFIG_KEY_AUTOGC = "autogc";
133 
134 	/**
135 	 * The "autopacklimit" key
136 	 * @since 4.6
137 	 */
138 	public static final String CONFIG_KEY_AUTOPACKLIMIT = "autopacklimit";
139 
140 	/**
141 	 * The "eol" key
142 	 *
143 	 * @since 4.3
144 	 */
145 	public static final String CONFIG_KEY_EOL = "eol";
146 
147 	/** The "bare" key */
148 	public static final String CONFIG_KEY_BARE = "bare";
149 
150 	/** The "excludesfile" key */
151 	public static final String CONFIG_KEY_EXCLUDESFILE = "excludesfile";
152 
153 	/**
154 	 * The "attributesfile" key
155 	 *
156 	 * @since 3.7
157 	 */
158 	public static final String CONFIG_KEY_ATTRIBUTESFILE = "attributesfile";
159 
160 	/** The "filemode" key */
161 	public static final String CONFIG_KEY_FILEMODE = "filemode";
162 
163 	/** The "logallrefupdates" key */
164 	public static final String CONFIG_KEY_LOGALLREFUPDATES = "logallrefupdates";
165 
166 	/** The "repositoryformatversion" key */
167 	public static final String CONFIG_KEY_REPO_FORMAT_VERSION = "repositoryformatversion";
168 
169 	/** The "worktree" key */
170 	public static final String CONFIG_KEY_WORKTREE = "worktree";
171 
172 	/** The "blockLimit" key */
173 	public static final String CONFIG_KEY_BLOCK_LIMIT = "blockLimit";
174 
175 	/** The "blockSize" key */
176 	public static final String CONFIG_KEY_BLOCK_SIZE = "blockSize";
177 
178 	/**
179 	 * The "concurrencyLevel" key
180 	 *
181 	 * @since 4.6
182 	 */
183 	public static final String CONFIG_KEY_CONCURRENCY_LEVEL = "concurrencyLevel";
184 
185 	/** The "deltaBaseCacheLimit" key */
186 	public static final String CONFIG_KEY_DELTA_BASE_CACHE_LIMIT = "deltaBaseCacheLimit";
187 
188 	/**
189 	 * The "symlinks" key
190 	 * @since 3.3
191 	 */
192 	public static final String CONFIG_KEY_SYMLINKS = "symlinks";
193 
194 	/** The "streamFileThreshold" key */
195 	public static final String CONFIG_KEY_STREAM_FILE_TRESHOLD = "streamFileThreshold";
196 
197 	/** The "remote" key */
198 	public static final String CONFIG_KEY_REMOTE = "remote";
199 
200 	/** The "merge" key */
201 	public static final String CONFIG_KEY_MERGE = "merge";
202 
203 	/** The "rebase" key */
204 	public static final String CONFIG_KEY_REBASE = "rebase";
205 
206 	/** The "url" key */
207 	public static final String CONFIG_KEY_URL = "url";
208 
209 	/** The "autosetupmerge" key */
210 	public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
211 
212 	/** The "autosetuprebase" key */
213 	public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
214 
215 	/**
216 	 * The "autostash" key
217 	 * @since 3.2
218 	 */
219 	public static final String CONFIG_KEY_AUTOSTASH = "autostash";
220 
221 	/** The "name" key */
222 	public static final String CONFIG_KEY_NAME = "name";
223 
224 	/** The "email" key */
225 	public static final String CONFIG_KEY_EMAIL = "email";
226 
227 	/** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
228 	public static final String CONFIG_KEY_FALSE = "false";
229 
230 	/** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
231 	public static final String CONFIG_KEY_TRUE = "true";
232 
233 	/**
234 	 * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
235 	 * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
236 	 */
237 	public static final String CONFIG_KEY_ALWAYS = "always";
238 
239 	/** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
240 	public static final String CONFIG_KEY_NEVER = "never";
241 
242 	/** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
243 	public static final String CONFIG_KEY_LOCAL = "local";
244 
245 	/** The "createchangeid" key */
246 	public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
247 
248 	/** The "defaultsourceref" key */
249 	public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
250 
251 	/** The "path" key */
252 	public static final String CONFIG_KEY_PATH = "path";
253 
254 	/** The "update" key */
255 	public static final String CONFIG_KEY_UPDATE = "update";
256 
257 	/**
258 	 * The "ignore" key
259 	 * @since 3.6
260 	 */
261 	public static final String CONFIG_KEY_IGNORE = "ignore";
262 
263 	/** The "compression" key */
264 	public static final String CONFIG_KEY_COMPRESSION = "compression";
265 
266 	/** The "indexversion" key */
267 	public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
268 
269 	/**
270 	 * The "hidedotfiles" key
271 	 * @since 3.5
272 	 */
273 	public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
274 
275 	/**
276 	 * The "dirnogitlinks" key
277 	 * @since 4.3
278 	 */
279 	public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
280 
281 	/** The "precomposeunicode" key */
282 	public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
283 
284 	/** The "pruneexpire" key */
285 	public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
286 
287 	/**
288 	 * The "prunepackexpire" key
289 	 * @since 4.3
290 	 */
291 	public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
292 
293 	/**
294 	 * The "aggressiveDepth" key
295 	 * @since 3.6
296 	 */
297 	public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
298 
299 	/**
300 	 * The "aggressiveWindow" key
301 	 * @since 3.6
302 	 */
303 	public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
304 
305 	/** The "mergeoptions" key */
306 	public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
307 
308 	/** The "ff" key */
309 	public static final String CONFIG_KEY_FF = "ff";
310 
311 	/**
312 	 * The "checkstat" key
313 	 * @since 3.0
314 	 */
315 	public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
316 
317 	/**
318 	 * The "renamelimit" key in the "diff section"
319 	 * @since 3.0
320 	 */
321 	public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
322 
323 	/**
324 	 * The "trustfolderstat" key in the "core section"
325 	 * @since 3.6
326 	 */
327 	public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
328 
329 	/**
330 	 * The "noprefix" key in the "diff section"
331 	 * @since 3.0
332 	 */
333 	public static final String CONFIG_KEY_NOPREFIX = "noprefix";
334 
335 	/**
336 	 * A "renamelimit" value in the "diff section"
337 	 * @since 3.0
338 	 */
339 	public static final String CONFIG_RENAMELIMIT_COPY = "copy";
340 
341 	/**
342 	 * A "renamelimit" value in the "diff section"
343 	 * @since 3.0
344 	 */
345 	public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
346 
347 	/**
348 	 * The "renames" key in the "diff section"
349 	 * @since 3.0
350 	 */
351 	public static final String CONFIG_KEY_RENAMES = "renames";
352 
353 	/**
354 	 * The "prune" key
355 	 * @since 3.3
356 	 */
357 	public static final String CONFIG_KEY_PRUNE = "prune";
358 
359 	/**
360 	 * The "streamBuffer" key
361 	 * @since 4.0
362 	 */
363 	public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
364 
365 	/**
366 	 * The "streamRatio" key
367 	 * @since 4.0
368 	 */
369 	public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
370 
371 	/**
372 	 * Flag in the filter section whether to use JGit's implementations of
373 	 * filters and hooks
374 	 * @since 4.6
375 	 */
376 	public static final String CONFIG_KEY_USEJGITBUILTIN = "useJGitBuiltin";
377 
378 	/**
379 	 * The "fetchRecurseSubmodules" key
380 	 * @since 4.7
381 	 */
382 	public static final String CONFIG_KEY_FETCH_RECURSE_SUBMODULES = "fetchRecurseSubmodules";
383 
384 	/**
385 	 * The "recurseSubmodules" key
386 	 * @since 4.7
387 	 */
388 	public static final String CONFIG_KEY_RECURSE_SUBMODULES = "recurseSubmodules";
389 }