You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConfigConstants.java 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  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. * Constants for use with the Configuration classes: section names,
  48. * configuration keys
  49. */
  50. @SuppressWarnings("nls")
  51. public final class ConfigConstants {
  52. /** The "core" section */
  53. public static final String CONFIG_CORE_SECTION = "core";
  54. /** The "branch" section */
  55. public static final String CONFIG_BRANCH_SECTION = "branch";
  56. /** The "remote" section */
  57. public static final String CONFIG_REMOTE_SECTION = "remote";
  58. /** The "diff" section */
  59. public static final String CONFIG_DIFF_SECTION = "diff";
  60. /** The "dfs" section */
  61. public static final String CONFIG_DFS_SECTION = "dfs";
  62. /**
  63. * The "receive" section
  64. * @since 4.6
  65. */
  66. public static final String CONFIG_RECEIVE_SECTION = "receive";
  67. /** The "user" section */
  68. public static final String CONFIG_USER_SECTION = "user";
  69. /** The "gerrit" section */
  70. public static final String CONFIG_GERRIT_SECTION = "gerrit";
  71. /** The "workflow" section */
  72. public static final String CONFIG_WORKFLOW_SECTION = "workflow";
  73. /** The "submodule" section */
  74. public static final String CONFIG_SUBMODULE_SECTION = "submodule";
  75. /**
  76. * The "rebase" section
  77. * @since 3.2
  78. */
  79. public static final String CONFIG_REBASE_SECTION = "rebase";
  80. /** The "gc" section */
  81. public static final String CONFIG_GC_SECTION = "gc";
  82. /** The "pack" section */
  83. public static final String CONFIG_PACK_SECTION = "pack";
  84. /**
  85. * The "fetch" section
  86. * @since 3.3
  87. */
  88. public static final String CONFIG_FETCH_SECTION = "fetch";
  89. /**
  90. * The "pull" section
  91. * @since 3.5
  92. */
  93. public static final String CONFIG_PULL_SECTION = "pull";
  94. /**
  95. * The "merge" section
  96. * @since 4.9
  97. */
  98. public static final String CONFIG_MERGE_SECTION = "merge";
  99. /**
  100. * The "filter" section
  101. * @since 4.6
  102. */
  103. public static final String CONFIG_FILTER_SECTION = "filter";
  104. /**
  105. * The "gpg" section
  106. * @since 5.2
  107. */
  108. public static final String CONFIG_GPG_SECTION = "gpg";
  109. /**
  110. * The "format" key
  111. * @since 5.2
  112. */
  113. public static final String CONFIG_KEY_FORMAT = "format";
  114. /**
  115. * The "signingKey" key
  116. * @since 5.2
  117. */
  118. public static final String CONFIG_KEY_SIGNINGKEY = "signingKey";
  119. /**
  120. * The "commit" section
  121. * @since 5.2
  122. */
  123. public static final String CONFIG_COMMIT_SECTION = "commit";
  124. /**
  125. * The "gpgSign" key
  126. * @since 5.2
  127. */
  128. public static final String CONFIG_KEY_GPGSIGN = "gpgSign";
  129. /** The "algorithm" key */
  130. public static final String CONFIG_KEY_ALGORITHM = "algorithm";
  131. /** The "autocrlf" key */
  132. public static final String CONFIG_KEY_AUTOCRLF = "autocrlf";
  133. /**
  134. * The "auto" key
  135. * @since 4.6
  136. */
  137. public static final String CONFIG_KEY_AUTO = "auto";
  138. /**
  139. * The "autogc" key
  140. * @since 4.6
  141. */
  142. public static final String CONFIG_KEY_AUTOGC = "autogc";
  143. /**
  144. * The "autopacklimit" key
  145. * @since 4.6
  146. */
  147. public static final String CONFIG_KEY_AUTOPACKLIMIT = "autopacklimit";
  148. /**
  149. * The "eol" key
  150. *
  151. * @since 4.3
  152. */
  153. public static final String CONFIG_KEY_EOL = "eol";
  154. /** The "bare" key */
  155. public static final String CONFIG_KEY_BARE = "bare";
  156. /** The "excludesfile" key */
  157. public static final String CONFIG_KEY_EXCLUDESFILE = "excludesfile";
  158. /**
  159. * The "attributesfile" key
  160. *
  161. * @since 3.7
  162. */
  163. public static final String CONFIG_KEY_ATTRIBUTESFILE = "attributesfile";
  164. /** The "filemode" key */
  165. public static final String CONFIG_KEY_FILEMODE = "filemode";
  166. /** The "logallrefupdates" key */
  167. public static final String CONFIG_KEY_LOGALLREFUPDATES = "logallrefupdates";
  168. /** The "repositoryformatversion" key */
  169. public static final String CONFIG_KEY_REPO_FORMAT_VERSION = "repositoryformatversion";
  170. /** The "worktree" key */
  171. public static final String CONFIG_KEY_WORKTREE = "worktree";
  172. /** The "blockLimit" key */
  173. public static final String CONFIG_KEY_BLOCK_LIMIT = "blockLimit";
  174. /** The "blockSize" key */
  175. public static final String CONFIG_KEY_BLOCK_SIZE = "blockSize";
  176. /**
  177. * The "concurrencyLevel" key
  178. *
  179. * @since 4.6
  180. */
  181. public static final String CONFIG_KEY_CONCURRENCY_LEVEL = "concurrencyLevel";
  182. /** The "deltaBaseCacheLimit" key */
  183. public static final String CONFIG_KEY_DELTA_BASE_CACHE_LIMIT = "deltaBaseCacheLimit";
  184. /**
  185. * The "symlinks" key
  186. * @since 3.3
  187. */
  188. public static final String CONFIG_KEY_SYMLINKS = "symlinks";
  189. /** The "streamFileThreshold" key */
  190. public static final String CONFIG_KEY_STREAM_FILE_TRESHOLD = "streamFileThreshold";
  191. /**
  192. * The "packedGitMmap" key
  193. * @since 5.1.13
  194. */
  195. public static final String CONFIG_KEY_PACKED_GIT_MMAP = "packedgitmmap";
  196. /**
  197. * The "packedGitWindowSize" key
  198. * @since 5.1.13
  199. */
  200. public static final String CONFIG_KEY_PACKED_GIT_WINDOWSIZE = "packedgitwindowsize";
  201. /**
  202. * The "packedGitLimit" key
  203. * @since 5.1.13
  204. */
  205. public static final String CONFIG_KEY_PACKED_GIT_LIMIT = "packedgitlimit";
  206. /**
  207. * The "packedGitOpenFiles" key
  208. * @since 5.1.13
  209. */
  210. public static final String CONFIG_KEY_PACKED_GIT_OPENFILES = "packedgitopenfiles";
  211. /**
  212. * The "packedGitUseStrongRefs" key
  213. * @since 5.1.13
  214. */
  215. public static final String CONFIG_KEY_PACKED_GIT_USE_STRONGREFS = "packedgitusestrongrefs";
  216. /** The "remote" key */
  217. public static final String CONFIG_KEY_REMOTE = "remote";
  218. /** The "merge" key */
  219. public static final String CONFIG_KEY_MERGE = "merge";
  220. /** The "rebase" key */
  221. public static final String CONFIG_KEY_REBASE = "rebase";
  222. /** The "url" key */
  223. public static final String CONFIG_KEY_URL = "url";
  224. /** The "autosetupmerge" key */
  225. public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
  226. /** The "autosetuprebase" key */
  227. public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
  228. /**
  229. * The "autostash" key
  230. * @since 3.2
  231. */
  232. public static final String CONFIG_KEY_AUTOSTASH = "autostash";
  233. /** The "name" key */
  234. public static final String CONFIG_KEY_NAME = "name";
  235. /** The "email" key */
  236. public static final String CONFIG_KEY_EMAIL = "email";
  237. /** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
  238. public static final String CONFIG_KEY_FALSE = "false";
  239. /** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
  240. public static final String CONFIG_KEY_TRUE = "true";
  241. /**
  242. * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
  243. * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
  244. */
  245. public static final String CONFIG_KEY_ALWAYS = "always";
  246. /** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
  247. public static final String CONFIG_KEY_NEVER = "never";
  248. /** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
  249. public static final String CONFIG_KEY_LOCAL = "local";
  250. /** The "createchangeid" key */
  251. public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
  252. /** The "defaultsourceref" key */
  253. public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
  254. /** The "path" key */
  255. public static final String CONFIG_KEY_PATH = "path";
  256. /** The "update" key */
  257. public static final String CONFIG_KEY_UPDATE = "update";
  258. /**
  259. * The "ignore" key
  260. * @since 3.6
  261. */
  262. public static final String CONFIG_KEY_IGNORE = "ignore";
  263. /** The "compression" key */
  264. public static final String CONFIG_KEY_COMPRESSION = "compression";
  265. /** The "indexversion" key */
  266. public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
  267. /**
  268. * The "hidedotfiles" key
  269. * @since 3.5
  270. */
  271. public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
  272. /**
  273. * The "dirnogitlinks" key
  274. * @since 4.3
  275. */
  276. public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
  277. /** The "precomposeunicode" key */
  278. public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
  279. /** The "pruneexpire" key */
  280. public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
  281. /**
  282. * The "prunepackexpire" key
  283. * @since 4.3
  284. */
  285. public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
  286. /**
  287. * The "logexpiry" key
  288. *
  289. * @since 4.7
  290. */
  291. public static final String CONFIG_KEY_LOGEXPIRY = "logExpiry";
  292. /**
  293. * The "autodetach" key
  294. *
  295. * @since 4.7
  296. */
  297. public static final String CONFIG_KEY_AUTODETACH = "autoDetach";
  298. /**
  299. * The "aggressiveDepth" key
  300. * @since 3.6
  301. */
  302. public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
  303. /**
  304. * The "aggressiveWindow" key
  305. * @since 3.6
  306. */
  307. public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
  308. /** The "mergeoptions" key */
  309. public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
  310. /** The "ff" key */
  311. public static final String CONFIG_KEY_FF = "ff";
  312. /**
  313. * The "checkstat" key
  314. * @since 3.0
  315. */
  316. public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
  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. * The "trustfolderstat" key in the "core" section
  324. * @since 3.6
  325. */
  326. public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
  327. /**
  328. * The "supportsAtomicFileCreation" key in the "core" section
  329. *
  330. * @since 4.5
  331. */
  332. public static final String CONFIG_KEY_SUPPORTSATOMICFILECREATION = "supportsatomicfilecreation";
  333. /**
  334. * The "noprefix" key in the "diff" section
  335. * @since 3.0
  336. */
  337. public static final String CONFIG_KEY_NOPREFIX = "noprefix";
  338. /**
  339. * A "renamelimit" value in the "diff" section
  340. * @since 3.0
  341. */
  342. public static final String CONFIG_RENAMELIMIT_COPY = "copy";
  343. /**
  344. * A "renamelimit" value in the "diff" section
  345. * @since 3.0
  346. */
  347. public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
  348. /**
  349. * The "renames" key in the "diff" section
  350. * @since 3.0
  351. */
  352. public static final String CONFIG_KEY_RENAMES = "renames";
  353. /**
  354. * The "inCoreLimit" key in the "merge" section. It's a size limit (bytes) used to
  355. * control a file to be stored in {@code Heap} or {@code LocalFile} during the merge.
  356. * @since 4.9
  357. */
  358. public static final String CONFIG_KEY_IN_CORE_LIMIT = "inCoreLimit";
  359. /**
  360. * The "prune" key
  361. * @since 3.3
  362. */
  363. public static final String CONFIG_KEY_PRUNE = "prune";
  364. /**
  365. * The "streamBuffer" key
  366. * @since 4.0
  367. */
  368. public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
  369. /**
  370. * The "streamRatio" key
  371. * @since 4.0
  372. */
  373. public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
  374. /**
  375. * Flag in the filter section whether to use JGit's implementations of
  376. * filters and hooks
  377. * @since 4.6
  378. */
  379. public static final String CONFIG_KEY_USEJGITBUILTIN = "useJGitBuiltin";
  380. /**
  381. * The "fetchRecurseSubmodules" key
  382. * @since 4.7
  383. */
  384. public static final String CONFIG_KEY_FETCH_RECURSE_SUBMODULES = "fetchRecurseSubmodules";
  385. /**
  386. * The "recurseSubmodules" key
  387. * @since 4.7
  388. */
  389. public static final String CONFIG_KEY_RECURSE_SUBMODULES = "recurseSubmodules";
  390. /**
  391. * The "required" key
  392. * @since 4.11
  393. */
  394. public static final String CONFIG_KEY_REQUIRED = "required";
  395. /**
  396. * The "lfs" section
  397. * @since 4.11
  398. */
  399. public static final String CONFIG_SECTION_LFS = "lfs";
  400. /**
  401. * The "i18n" section
  402. *
  403. * @since 5.2
  404. */
  405. public static final String CONFIG_SECTION_I18N = "i18n";
  406. /**
  407. * The "logOutputEncoding" key
  408. *
  409. * @since 5.2
  410. */
  411. public static final String CONFIG_KEY_LOG_OUTPUT_ENCODING = "logOutputEncoding";
  412. /**
  413. * The "filesystem" section
  414. * @since 5.1.9
  415. */
  416. public static final String CONFIG_FILESYSTEM_SECTION = "filesystem";
  417. /**
  418. * The "timestampResolution" key
  419. * @since 5.1.9
  420. */
  421. public static final String CONFIG_KEY_TIMESTAMP_RESOLUTION = "timestampResolution";
  422. /**
  423. * The "minRacyThreshold" key
  424. *
  425. * @since 5.1.9
  426. */
  427. public static final String CONFIG_KEY_MIN_RACY_THRESHOLD = "minRacyThreshold";
  428. /**
  429. * The "jmx" section
  430. * @since 5.1.13
  431. */
  432. public static final String CONFIG_JMX_SECTION = "jmx";
  433. }