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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  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. /**
  169. * The "packedGitMmap" key
  170. * @since 5.1.13
  171. */
  172. public static final String CONFIG_KEY_PACKED_GIT_MMAP = "packedgitmmap";
  173. /**
  174. * The "packedGitWindowSize" key
  175. * @since 5.1.13
  176. */
  177. public static final String CONFIG_KEY_PACKED_GIT_WINDOWSIZE = "packedgitwindowsize";
  178. /**
  179. * The "packedGitLimit" key
  180. * @since 5.1.13
  181. */
  182. public static final String CONFIG_KEY_PACKED_GIT_LIMIT = "packedgitlimit";
  183. /**
  184. * The "packedGitOpenFiles" key
  185. * @since 5.1.13
  186. */
  187. public static final String CONFIG_KEY_PACKED_GIT_OPENFILES = "packedgitopenfiles";
  188. /**
  189. * The "packedGitUseStrongRefs" key
  190. * @since 5.1.13
  191. */
  192. public static final String CONFIG_KEY_PACKED_GIT_USE_STRONGREFS = "packedgitusestrongrefs";
  193. /** The "remote" key */
  194. public static final String CONFIG_KEY_REMOTE = "remote";
  195. /** The "merge" key */
  196. public static final String CONFIG_KEY_MERGE = "merge";
  197. /** The "rebase" key */
  198. public static final String CONFIG_KEY_REBASE = "rebase";
  199. /** The "url" key */
  200. public static final String CONFIG_KEY_URL = "url";
  201. /** The "autosetupmerge" key */
  202. public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
  203. /** The "autosetuprebase" key */
  204. public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
  205. /**
  206. * The "autostash" key
  207. * @since 3.2
  208. */
  209. public static final String CONFIG_KEY_AUTOSTASH = "autostash";
  210. /** The "name" key */
  211. public static final String CONFIG_KEY_NAME = "name";
  212. /** The "email" key */
  213. public static final String CONFIG_KEY_EMAIL = "email";
  214. /** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
  215. public static final String CONFIG_KEY_FALSE = "false";
  216. /** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
  217. public static final String CONFIG_KEY_TRUE = "true";
  218. /**
  219. * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
  220. * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
  221. */
  222. public static final String CONFIG_KEY_ALWAYS = "always";
  223. /** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
  224. public static final String CONFIG_KEY_NEVER = "never";
  225. /** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
  226. public static final String CONFIG_KEY_LOCAL = "local";
  227. /** The "createchangeid" key */
  228. public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
  229. /** The "defaultsourceref" key */
  230. public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
  231. /** The "path" key */
  232. public static final String CONFIG_KEY_PATH = "path";
  233. /** The "update" key */
  234. public static final String CONFIG_KEY_UPDATE = "update";
  235. /**
  236. * The "ignore" key
  237. * @since 3.6
  238. */
  239. public static final String CONFIG_KEY_IGNORE = "ignore";
  240. /** The "compression" key */
  241. public static final String CONFIG_KEY_COMPRESSION = "compression";
  242. /** The "indexversion" key */
  243. public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
  244. /**
  245. * The "hidedotfiles" key
  246. * @since 3.5
  247. */
  248. public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
  249. /**
  250. * The "dirnogitlinks" key
  251. * @since 4.3
  252. */
  253. public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
  254. /** The "precomposeunicode" key */
  255. public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
  256. /** The "pruneexpire" key */
  257. public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
  258. /**
  259. * The "prunepackexpire" key
  260. * @since 4.3
  261. */
  262. public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
  263. /**
  264. * The "logexpiry" key
  265. *
  266. * @since 4.7
  267. */
  268. public static final String CONFIG_KEY_LOGEXPIRY = "logExpiry";
  269. /**
  270. * The "autodetach" key
  271. *
  272. * @since 4.7
  273. */
  274. public static final String CONFIG_KEY_AUTODETACH = "autoDetach";
  275. /**
  276. * The "aggressiveDepth" key
  277. * @since 3.6
  278. */
  279. public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
  280. /**
  281. * The "aggressiveWindow" key
  282. * @since 3.6
  283. */
  284. public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
  285. /** The "mergeoptions" key */
  286. public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
  287. /** The "ff" key */
  288. public static final String CONFIG_KEY_FF = "ff";
  289. /**
  290. * The "checkstat" key
  291. * @since 3.0
  292. */
  293. public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
  294. /**
  295. * The "renamelimit" key in the "diff" section
  296. * @since 3.0
  297. */
  298. public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
  299. /**
  300. * The "trustfolderstat" key in the "core" section
  301. * @since 3.6
  302. */
  303. public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
  304. /**
  305. * The "supportsAtomicFileCreation" key in the "core" section
  306. *
  307. * @since 4.5
  308. */
  309. public static final String CONFIG_KEY_SUPPORTSATOMICFILECREATION = "supportsatomicfilecreation";
  310. /**
  311. * The "noprefix" key in the "diff" section
  312. * @since 3.0
  313. */
  314. public static final String CONFIG_KEY_NOPREFIX = "noprefix";
  315. /**
  316. * A "renamelimit" value in the "diff" section
  317. * @since 3.0
  318. */
  319. public static final String CONFIG_RENAMELIMIT_COPY = "copy";
  320. /**
  321. * A "renamelimit" value in the "diff" section
  322. * @since 3.0
  323. */
  324. public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
  325. /**
  326. * The "renames" key in the "diff" section
  327. * @since 3.0
  328. */
  329. public static final String CONFIG_KEY_RENAMES = "renames";
  330. /**
  331. * The "inCoreLimit" key in the "merge" section. It's a size limit (bytes) used to
  332. * control a file to be stored in {@code Heap} or {@code LocalFile} during the merge.
  333. * @since 4.9
  334. */
  335. public static final String CONFIG_KEY_IN_CORE_LIMIT = "inCoreLimit";
  336. /**
  337. * The "prune" key
  338. * @since 3.3
  339. */
  340. public static final String CONFIG_KEY_PRUNE = "prune";
  341. /**
  342. * The "streamBuffer" key
  343. * @since 4.0
  344. */
  345. public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
  346. /**
  347. * The "streamRatio" key
  348. * @since 4.0
  349. */
  350. public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
  351. /**
  352. * Flag in the filter section whether to use JGit's implementations of
  353. * filters and hooks
  354. * @since 4.6
  355. */
  356. public static final String CONFIG_KEY_USEJGITBUILTIN = "useJGitBuiltin";
  357. /**
  358. * The "fetchRecurseSubmodules" key
  359. * @since 4.7
  360. */
  361. public static final String CONFIG_KEY_FETCH_RECURSE_SUBMODULES = "fetchRecurseSubmodules";
  362. /**
  363. * The "recurseSubmodules" key
  364. * @since 4.7
  365. */
  366. public static final String CONFIG_KEY_RECURSE_SUBMODULES = "recurseSubmodules";
  367. /**
  368. * The "required" key
  369. * @since 4.11
  370. */
  371. public static final String CONFIG_KEY_REQUIRED = "required";
  372. /**
  373. * The "lfs" section
  374. * @since 4.11
  375. */
  376. public static final String CONFIG_SECTION_LFS = "lfs";
  377. /**
  378. * The "i18n" section
  379. *
  380. * @since 5.2
  381. */
  382. public static final String CONFIG_SECTION_I18N = "i18n";
  383. /**
  384. * The "logOutputEncoding" key
  385. *
  386. * @since 5.2
  387. */
  388. public static final String CONFIG_KEY_LOG_OUTPUT_ENCODING = "logOutputEncoding";
  389. /**
  390. * The "filesystem" section
  391. * @since 5.1.9
  392. */
  393. public static final String CONFIG_FILESYSTEM_SECTION = "filesystem";
  394. /**
  395. * The "timestampResolution" key
  396. * @since 5.1.9
  397. */
  398. public static final String CONFIG_KEY_TIMESTAMP_RESOLUTION = "timestampResolution";
  399. /**
  400. * The "minRacyThreshold" key
  401. * @since 5.1.9
  402. */
  403. public static final String CONFIG_KEY_MIN_RACY_THRESHOLD = "minRacyThreshold";
  404. /**
  405. * The "refStorage" key
  406. *
  407. * @since 5.6.2
  408. */
  409. public static final String CONFIG_KEY_REF_STORAGE = "refStorage";
  410. /**
  411. * The "extensions" section
  412. *
  413. * @since 5.6.2
  414. */
  415. public static final String CONFIG_EXTENSIONS_SECTION = "extensions";
  416. /**
  417. * The extensions.refStorage key
  418. * @since 5.7
  419. */
  420. public static final String CONFIG_KEY_REFSTORAGE = "refStorage";
  421. /**
  422. * The "reftable" refStorage format
  423. * @since 5.7
  424. */
  425. public static final String CONFIG_REF_STORAGE_REFTABLE = "reftable";
  426. /**
  427. * The "reftree" refStorage format
  428. * @since 5.7
  429. */
  430. public static final String CONFIG_REFSTORAGE_REFTREE = "reftree";
  431. /**
  432. * The "jmx" section
  433. * @since 5.1.13
  434. */
  435. public static final String CONFIG_JMX_SECTION = "jmx";
  436. }