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 	/** The "bare" key */
111 	public static final String CONFIG_KEY_BARE = "bare";
112 
113 	/** The "excludesfile" key */
114 	public static final String CONFIG_KEY_EXCLUDESFILE = "excludesfile";
115 
116 	/**
117 	 * The "attributesfile" key
118 	 *
119 	 * @since 3.7
120 	 */
121 	public static final String CONFIG_KEY_ATTRIBUTESFILE = "attributesfile";
122 
123 	/** The "filemode" key */
124 	public static final String CONFIG_KEY_FILEMODE = "filemode";
125 
126 	/** The "logallrefupdates" key */
127 	public static final String CONFIG_KEY_LOGALLREFUPDATES = "logallrefupdates";
128 
129 	/** The "repositoryformatversion" key */
130 	public static final String CONFIG_KEY_REPO_FORMAT_VERSION = "repositoryformatversion";
131 
132 	/** The "worktree" key */
133 	public static final String CONFIG_KEY_WORKTREE = "worktree";
134 
135 	/** The "blockLimit" key */
136 	public static final String CONFIG_KEY_BLOCK_LIMIT = "blockLimit";
137 
138 	/** The "blockSize" key */
139 	public static final String CONFIG_KEY_BLOCK_SIZE = "blockSize";
140 
141 	/** The "deltaBaseCacheLimit" key */
142 	public static final String CONFIG_KEY_DELTA_BASE_CACHE_LIMIT = "deltaBaseCacheLimit";
143 
144 	/**
145 	 * The "symlinks" key
146 	 * @since 3.3
147 	 */
148 	public static final String CONFIG_KEY_SYMLINKS = "symlinks";
149 
150 	/** The "streamFileThreshold" key */
151 	public static final String CONFIG_KEY_STREAM_FILE_TRESHOLD = "streamFileThreshold";
152 
153 	/** The "remote" key */
154 	public static final String CONFIG_KEY_REMOTE = "remote";
155 
156 	/** The "merge" key */
157 	public static final String CONFIG_KEY_MERGE = "merge";
158 
159 	/** The "rebase" key */
160 	public static final String CONFIG_KEY_REBASE = "rebase";
161 
162 	/** The "url" key */
163 	public static final String CONFIG_KEY_URL = "url";
164 
165 	/** The "autosetupmerge" key */
166 	public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
167 
168 	/** The "autosetuprebase" key */
169 	public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
170 
171 	/**
172 	 * The "autostash" key
173 	 * @since 3.2
174 	 */
175 	public static final String CONFIG_KEY_AUTOSTASH = "autostash";
176 
177 	/** The "name" key */
178 	public static final String CONFIG_KEY_NAME = "name";
179 
180 	/** The "email" key */
181 	public static final String CONFIG_KEY_EMAIL = "email";
182 
183 	/** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
184 	public static final String CONFIG_KEY_FALSE = "false";
185 
186 	/** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
187 	public static final String CONFIG_KEY_TRUE = "true";
188 
189 	/**
190 	 * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
191 	 * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
192 	 */
193 	public static final String CONFIG_KEY_ALWAYS = "always";
194 
195 	/** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
196 	public static final String CONFIG_KEY_NEVER = "never";
197 
198 	/** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
199 	public static final String CONFIG_KEY_LOCAL = "local";
200 
201 	/** The "createchangeid" key */
202 	public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
203 
204 	/** The "defaultsourceref" key */
205 	public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
206 
207 	/** The "path" key */
208 	public static final String CONFIG_KEY_PATH = "path";
209 
210 	/** The "update" key */
211 	public static final String CONFIG_KEY_UPDATE = "update";
212 
213 	/**
214 	 * The "ignore" key
215 	 * @since 3.6
216 	 */
217 	public static final String CONFIG_KEY_IGNORE = "ignore";
218 
219 	/** The "compression" key */
220 	public static final String CONFIG_KEY_COMPRESSION = "compression";
221 
222 	/** The "indexversion" key */
223 	public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
224 
225 	/**
226 	 * The "hidedotfiles" key
227 	 * @since 3.5
228 	 */
229 	public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
230 
231 	/** The "precomposeunicode" key */
232 	public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
233 
234 	/** The "pruneexpire" key */
235 	public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
236 
237 	/**
238 	 * The "aggressiveDepth" key
239 	 * @since 3.6
240 	 */
241 	public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
242 
243 	/**
244 	 * The "aggressiveWindow" key
245 	 * @since 3.6
246 	 */
247 	public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
248 
249 	/** The "mergeoptions" key */
250 	public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
251 
252 	/** The "ff" key */
253 	public static final String CONFIG_KEY_FF = "ff";
254 
255 	/**
256 	 * The "checkstat" key
257 	 * @since 3.0
258 	 */
259 	public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
260 
261 	/**
262 	 * The "renamelimit" key in the "diff section"
263 	 * @since 3.0
264 	 */
265 	public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
266 
267 	/**
268 	 * The "trustfolderstat" key in the "core section"
269 	 * @since 3.6
270 	 */
271 	public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
272 
273 	/**
274 	 * The "noprefix" key in the "diff section"
275 	 * @since 3.0
276 	 */
277 	public static final String CONFIG_KEY_NOPREFIX = "noprefix";
278 
279 	/**
280 	 * A "renamelimit" value in the "diff section"
281 	 * @since 3.0
282 	 */
283 	public static final String CONFIG_RENAMELIMIT_COPY = "copy";
284 
285 	/**
286 	 * A "renamelimit" value in the "diff section"
287 	 * @since 3.0
288 	 */
289 	public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
290 
291 	/**
292 	 * The "renames" key in the "diff section"
293 	 * @since 3.0
294 	 */
295 	public static final String CONFIG_KEY_RENAMES = "renames";
296 
297 	/**
298 	 * The "prune" key
299 	 * @since 3.3
300 	 */
301 	public static final String CONFIG_KEY_PRUNE = "prune";
302 
303 	/**
304 	 * The "streamBuffer" key
305 	 * @since 4.0
306 	 */
307 	public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
308 
309 	/**
310 	 * The "streamRatio" key
311 	 * @since 4.0
312 	 */
313 	public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
314 }