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 12KB

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