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  	/** The "user" section */
69  	public static final String CONFIG_USER_SECTION = "user";
70  
71  	/** The "gerrit" section */
72  	public static final String CONFIG_GERRIT_SECTION = "gerrit";
73  
74  	/** The "workflow" section */
75  	public static final String CONFIG_WORKFLOW_SECTION = "workflow";
76  
77  	/** The "submodule" section */
78  	public static final String CONFIG_SUBMODULE_SECTION = "submodule";
79  
80  	/**
81  	 * The "rebase" section
82  	 * @since 3.2
83  	 */
84  	public static final String CONFIG_REBASE_SECTION = "rebase";
85  
86  	/** The "gc" section */
87  	public static final String CONFIG_GC_SECTION = "gc";
88  
89  	/** The "pack" section */
90  	public static final String CONFIG_PACK_SECTION = "pack";
91  
92  	/**
93  	 * The "fetch" section
94  	 * @since 3.3
95  	 */
96  	public static final String CONFIG_FETCH_SECTION = "fetch";
97  
98  	/**
99  	 * The "pull" section
100 	 * @since 3.5
101 	 */
102 	public static final String CONFIG_PULL_SECTION = "pull";
103 
104 	/** The "algorithm" key */
105 	public static final String CONFIG_KEY_ALGORITHM = "algorithm";
106 
107 	/** The "autocrlf" key */
108 	public static final String CONFIG_KEY_AUTOCRLF = "autocrlf";
109 
110 	/**
111 	 * The "eol" key
112 	 *
113 	 * @since 4.3
114 	 */
115 	public static final String CONFIG_KEY_EOL = "eol";
116 
117 	/** The "bare" key */
118 	public static final String CONFIG_KEY_BARE = "bare";
119 
120 	/** The "excludesfile" key */
121 	public static final String CONFIG_KEY_EXCLUDESFILE = "excludesfile";
122 
123 	/**
124 	 * The "attributesfile" key
125 	 *
126 	 * @since 3.7
127 	 */
128 	public static final String CONFIG_KEY_ATTRIBUTESFILE = "attributesfile";
129 
130 	/** The "filemode" key */
131 	public static final String CONFIG_KEY_FILEMODE = "filemode";
132 
133 	/** The "logallrefupdates" key */
134 	public static final String CONFIG_KEY_LOGALLREFUPDATES = "logallrefupdates";
135 
136 	/** The "repositoryformatversion" key */
137 	public static final String CONFIG_KEY_REPO_FORMAT_VERSION = "repositoryformatversion";
138 
139 	/** The "worktree" key */
140 	public static final String CONFIG_KEY_WORKTREE = "worktree";
141 
142 	/** The "blockLimit" key */
143 	public static final String CONFIG_KEY_BLOCK_LIMIT = "blockLimit";
144 
145 	/** The "blockSize" key */
146 	public static final String CONFIG_KEY_BLOCK_SIZE = "blockSize";
147 
148 	/** The "deltaBaseCacheLimit" key */
149 	public static final String CONFIG_KEY_DELTA_BASE_CACHE_LIMIT = "deltaBaseCacheLimit";
150 
151 	/**
152 	 * The "symlinks" key
153 	 * @since 3.3
154 	 */
155 	public static final String CONFIG_KEY_SYMLINKS = "symlinks";
156 
157 	/** The "streamFileThreshold" key */
158 	public static final String CONFIG_KEY_STREAM_FILE_TRESHOLD = "streamFileThreshold";
159 
160 	/** The "remote" key */
161 	public static final String CONFIG_KEY_REMOTE = "remote";
162 
163 	/** The "merge" key */
164 	public static final String CONFIG_KEY_MERGE = "merge";
165 
166 	/** The "rebase" key */
167 	public static final String CONFIG_KEY_REBASE = "rebase";
168 
169 	/** The "url" key */
170 	public static final String CONFIG_KEY_URL = "url";
171 
172 	/** The "autosetupmerge" key */
173 	public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
174 
175 	/** The "autosetuprebase" key */
176 	public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
177 
178 	/**
179 	 * The "autostash" key
180 	 * @since 3.2
181 	 */
182 	public static final String CONFIG_KEY_AUTOSTASH = "autostash";
183 
184 	/** The "name" key */
185 	public static final String CONFIG_KEY_NAME = "name";
186 
187 	/** The "email" key */
188 	public static final String CONFIG_KEY_EMAIL = "email";
189 
190 	/** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
191 	public static final String CONFIG_KEY_FALSE = "false";
192 
193 	/** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
194 	public static final String CONFIG_KEY_TRUE = "true";
195 
196 	/**
197 	 * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
198 	 * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
199 	 */
200 	public static final String CONFIG_KEY_ALWAYS = "always";
201 
202 	/** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
203 	public static final String CONFIG_KEY_NEVER = "never";
204 
205 	/** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
206 	public static final String CONFIG_KEY_LOCAL = "local";
207 
208 	/** The "createchangeid" key */
209 	public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
210 
211 	/** The "defaultsourceref" key */
212 	public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
213 
214 	/** The "path" key */
215 	public static final String CONFIG_KEY_PATH = "path";
216 
217 	/** The "update" key */
218 	public static final String CONFIG_KEY_UPDATE = "update";
219 
220 	/**
221 	 * The "ignore" key
222 	 * @since 3.6
223 	 */
224 	public static final String CONFIG_KEY_IGNORE = "ignore";
225 
226 	/** The "compression" key */
227 	public static final String CONFIG_KEY_COMPRESSION = "compression";
228 
229 	/** The "indexversion" key */
230 	public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
231 
232 	/**
233 	 * The "hidedotfiles" key
234 	 * @since 3.5
235 	 */
236 	public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
237 
238 	/**
239 	 * The "dirnogitlinks" key
240 	 * @since 4.3
241 	 */
242 	public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
243 
244 	/** The "precomposeunicode" key */
245 	public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
246 
247 	/** The "pruneexpire" key */
248 	public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
249 
250 	/**
251 	 * The "prunepackexpire" key
252 	 * @since 4.3
253 	 */
254 	public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
255 
256 	/**
257 	 * The "aggressiveDepth" key
258 	 * @since 3.6
259 	 */
260 	public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
261 
262 	/**
263 	 * The "aggressiveWindow" key
264 	 * @since 3.6
265 	 */
266 	public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
267 
268 	/** The "mergeoptions" key */
269 	public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
270 
271 	/** The "ff" key */
272 	public static final String CONFIG_KEY_FF = "ff";
273 
274 	/**
275 	 * The "checkstat" key
276 	 * @since 3.0
277 	 */
278 	public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
279 
280 	/**
281 	 * The "renamelimit" key in the "diff section"
282 	 * @since 3.0
283 	 */
284 	public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
285 
286 	/**
287 	 * The "trustfolderstat" key in the "core section"
288 	 * @since 3.6
289 	 */
290 	public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
291 
292 	/**
293 	 * The "noprefix" key in the "diff section"
294 	 * @since 3.0
295 	 */
296 	public static final String CONFIG_KEY_NOPREFIX = "noprefix";
297 
298 	/**
299 	 * A "renamelimit" value in the "diff section"
300 	 * @since 3.0
301 	 */
302 	public static final String CONFIG_RENAMELIMIT_COPY = "copy";
303 
304 	/**
305 	 * A "renamelimit" value in the "diff section"
306 	 * @since 3.0
307 	 */
308 	public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
309 
310 	/**
311 	 * The "renames" key in the "diff section"
312 	 * @since 3.0
313 	 */
314 	public static final String CONFIG_KEY_RENAMES = "renames";
315 
316 	/**
317 	 * The "prune" key
318 	 * @since 3.3
319 	 */
320 	public static final String CONFIG_KEY_PRUNE = "prune";
321 
322 	/**
323 	 * The "streamBuffer" key
324 	 * @since 4.0
325 	 */
326 	public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
327 
328 	/**
329 	 * The "streamRatio" key
330 	 * @since 4.0
331 	 */
332 	public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
333 }