Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ConfigConstants.java 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. /*
  2. * Copyright (C) 2010, Mathias Kinzler <mathias.kinzler@sap.com>
  3. * Copyright (C) 2010, Chris Aniszczyk <caniszczyk@gmail.com>
  4. * Copyright (C) 2012, 2020, 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 "protocol" section
  78. * @since 5.9
  79. */
  80. public static final String CONFIG_PROTOCOL_SECTION = "protocol";
  81. /**
  82. * The "format" key
  83. * @since 5.2
  84. */
  85. public static final String CONFIG_KEY_FORMAT = "format";
  86. /**
  87. * The "signingKey" key
  88. * @since 5.2
  89. */
  90. public static final String CONFIG_KEY_SIGNINGKEY = "signingKey";
  91. /**
  92. * The "commit" section
  93. * @since 5.2
  94. */
  95. public static final String CONFIG_COMMIT_SECTION = "commit";
  96. /**
  97. * The "tag" section
  98. *
  99. * @since 5.11
  100. */
  101. public static final String CONFIG_TAG_SECTION = "tag";
  102. /**
  103. * The "gpgSign" key
  104. *
  105. * @since 5.2
  106. */
  107. public static final String CONFIG_KEY_GPGSIGN = "gpgSign";
  108. /**
  109. * The "forceSignAnnotated" key
  110. *
  111. * @since 5.11
  112. */
  113. public static final String CONFIG_KEY_FORCE_SIGN_ANNOTATED = "forceSignAnnotated";
  114. /**
  115. * The "hooksPath" key.
  116. *
  117. * @since 5.6
  118. */
  119. public static final String CONFIG_KEY_HOOKS_PATH = "hooksPath";
  120. /**
  121. * The "quotePath" key.
  122. * @since 5.6
  123. */
  124. public static final String CONFIG_KEY_QUOTE_PATH = "quotePath";
  125. /** The "algorithm" key */
  126. public static final String CONFIG_KEY_ALGORITHM = "algorithm";
  127. /** The "autocrlf" key */
  128. public static final String CONFIG_KEY_AUTOCRLF = "autocrlf";
  129. /**
  130. * The "auto" key
  131. * @since 4.6
  132. */
  133. public static final String CONFIG_KEY_AUTO = "auto";
  134. /**
  135. * The "autogc" key
  136. * @since 4.6
  137. */
  138. public static final String CONFIG_KEY_AUTOGC = "autogc";
  139. /**
  140. * The "autopacklimit" key
  141. * @since 4.6
  142. */
  143. public static final String CONFIG_KEY_AUTOPACKLIMIT = "autopacklimit";
  144. /**
  145. * The "eol" key
  146. *
  147. * @since 4.3
  148. */
  149. public static final String CONFIG_KEY_EOL = "eol";
  150. /** The "bare" key */
  151. public static final String CONFIG_KEY_BARE = "bare";
  152. /** The "excludesfile" key */
  153. public static final String CONFIG_KEY_EXCLUDESFILE = "excludesfile";
  154. /**
  155. * The "attributesfile" key
  156. *
  157. * @since 3.7
  158. */
  159. public static final String CONFIG_KEY_ATTRIBUTESFILE = "attributesfile";
  160. /** The "filemode" key */
  161. public static final String CONFIG_KEY_FILEMODE = "filemode";
  162. /** The "logallrefupdates" key */
  163. public static final String CONFIG_KEY_LOGALLREFUPDATES = "logallrefupdates";
  164. /** The "repositoryformatversion" key */
  165. public static final String CONFIG_KEY_REPO_FORMAT_VERSION = "repositoryformatversion";
  166. /** The "worktree" key */
  167. public static final String CONFIG_KEY_WORKTREE = "worktree";
  168. /** The "blockLimit" key */
  169. public static final String CONFIG_KEY_BLOCK_LIMIT = "blockLimit";
  170. /** The "blockSize" key */
  171. public static final String CONFIG_KEY_BLOCK_SIZE = "blockSize";
  172. /**
  173. * The "concurrencyLevel" key
  174. *
  175. * @since 4.6
  176. */
  177. public static final String CONFIG_KEY_CONCURRENCY_LEVEL = "concurrencyLevel";
  178. /** The "deltaBaseCacheLimit" key */
  179. public static final String CONFIG_KEY_DELTA_BASE_CACHE_LIMIT = "deltaBaseCacheLimit";
  180. /**
  181. * The "symlinks" key
  182. * @since 3.3
  183. */
  184. public static final String CONFIG_KEY_SYMLINKS = "symlinks";
  185. /** The "streamFileThreshold" key */
  186. public static final String CONFIG_KEY_STREAM_FILE_TRESHOLD = "streamFileThreshold";
  187. /**
  188. * The "packedGitMmap" key
  189. * @since 5.1.13
  190. */
  191. public static final String CONFIG_KEY_PACKED_GIT_MMAP = "packedgitmmap";
  192. /**
  193. * The "packedGitWindowSize" key
  194. * @since 5.1.13
  195. */
  196. public static final String CONFIG_KEY_PACKED_GIT_WINDOWSIZE = "packedgitwindowsize";
  197. /**
  198. * The "packedGitLimit" key
  199. * @since 5.1.13
  200. */
  201. public static final String CONFIG_KEY_PACKED_GIT_LIMIT = "packedgitlimit";
  202. /**
  203. * The "packedGitOpenFiles" key
  204. * @since 5.1.13
  205. */
  206. public static final String CONFIG_KEY_PACKED_GIT_OPENFILES = "packedgitopenfiles";
  207. /**
  208. * The "packedGitUseStrongRefs" key
  209. * @since 5.1.13
  210. */
  211. public static final String CONFIG_KEY_PACKED_GIT_USE_STRONGREFS = "packedgitusestrongrefs";
  212. /** The "remote" key */
  213. public static final String CONFIG_KEY_REMOTE = "remote";
  214. /** The "merge" key */
  215. public static final String CONFIG_KEY_MERGE = "merge";
  216. /** The "rebase" key */
  217. public static final String CONFIG_KEY_REBASE = "rebase";
  218. /** The "url" key */
  219. public static final String CONFIG_KEY_URL = "url";
  220. /** The "autosetupmerge" key */
  221. public static final String CONFIG_KEY_AUTOSETUPMERGE = "autosetupmerge";
  222. /** The "autosetuprebase" key */
  223. public static final String CONFIG_KEY_AUTOSETUPREBASE = "autosetuprebase";
  224. /**
  225. * The "autostash" key
  226. * @since 3.2
  227. */
  228. public static final String CONFIG_KEY_AUTOSTASH = "autostash";
  229. /** The "name" key */
  230. public static final String CONFIG_KEY_NAME = "name";
  231. /** The "email" key */
  232. public static final String CONFIG_KEY_EMAIL = "email";
  233. /** The "false" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
  234. public static final String CONFIG_KEY_FALSE = "false";
  235. /** The "true" key (used to configure {@link #CONFIG_KEY_AUTOSETUPMERGE} */
  236. public static final String CONFIG_KEY_TRUE = "true";
  237. /**
  238. * The "always" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE}
  239. * and {@link #CONFIG_KEY_AUTOSETUPMERGE}
  240. */
  241. public static final String CONFIG_KEY_ALWAYS = "always";
  242. /** The "never" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
  243. public static final String CONFIG_KEY_NEVER = "never";
  244. /** The "local" key (used to configure {@link #CONFIG_KEY_AUTOSETUPREBASE} */
  245. public static final String CONFIG_KEY_LOCAL = "local";
  246. /** The "createchangeid" key */
  247. public static final String CONFIG_KEY_CREATECHANGEID = "createchangeid";
  248. /** The "defaultsourceref" key */
  249. public static final String CONFIG_KEY_DEFBRANCHSTARTPOINT = "defbranchstartpoint";
  250. /** The "path" key */
  251. public static final String CONFIG_KEY_PATH = "path";
  252. /** The "update" key */
  253. public static final String CONFIG_KEY_UPDATE = "update";
  254. /**
  255. * The "ignore" key
  256. * @since 3.6
  257. */
  258. public static final String CONFIG_KEY_IGNORE = "ignore";
  259. /** The "compression" key */
  260. public static final String CONFIG_KEY_COMPRESSION = "compression";
  261. /** The "indexversion" key */
  262. public static final String CONFIG_KEY_INDEXVERSION = "indexversion";
  263. /**
  264. * The "hidedotfiles" key
  265. * @since 3.5
  266. */
  267. public static final String CONFIG_KEY_HIDEDOTFILES = "hidedotfiles";
  268. /**
  269. * The "dirnogitlinks" key
  270. * @since 4.3
  271. */
  272. public static final String CONFIG_KEY_DIRNOGITLINKS = "dirNoGitLinks";
  273. /** The "precomposeunicode" key */
  274. public static final String CONFIG_KEY_PRECOMPOSEUNICODE = "precomposeunicode";
  275. /** The "pruneexpire" key */
  276. public static final String CONFIG_KEY_PRUNEEXPIRE = "pruneexpire";
  277. /**
  278. * The "prunepackexpire" key
  279. * @since 4.3
  280. */
  281. public static final String CONFIG_KEY_PRUNEPACKEXPIRE = "prunepackexpire";
  282. /**
  283. * The "logexpiry" key
  284. *
  285. * @since 4.7
  286. */
  287. public static final String CONFIG_KEY_LOGEXPIRY = "logExpiry";
  288. /**
  289. * The "autodetach" key
  290. *
  291. * @since 4.7
  292. */
  293. public static final String CONFIG_KEY_AUTODETACH = "autoDetach";
  294. /**
  295. * The "aggressiveDepth" key
  296. * @since 3.6
  297. */
  298. public static final String CONFIG_KEY_AGGRESSIVE_DEPTH = "aggressiveDepth";
  299. /**
  300. * The "aggressiveWindow" key
  301. * @since 3.6
  302. */
  303. public static final String CONFIG_KEY_AGGRESSIVE_WINDOW = "aggressiveWindow";
  304. /** The "mergeoptions" key */
  305. public static final String CONFIG_KEY_MERGEOPTIONS = "mergeoptions";
  306. /** The "ff" key */
  307. public static final String CONFIG_KEY_FF = "ff";
  308. /**
  309. * The "checkstat" key
  310. * @since 3.0
  311. */
  312. public static final String CONFIG_KEY_CHECKSTAT = "checkstat";
  313. /**
  314. * The "renamelimit" key in the "diff" section
  315. * @since 3.0
  316. */
  317. public static final String CONFIG_KEY_RENAMELIMIT = "renamelimit";
  318. /**
  319. * The "trustfolderstat" key in the "core" section
  320. * @since 3.6
  321. */
  322. public static final String CONFIG_KEY_TRUSTFOLDERSTAT = "trustfolderstat";
  323. /**
  324. * The "supportsAtomicFileCreation" key in the "core" section
  325. *
  326. * @since 4.5
  327. */
  328. public static final String CONFIG_KEY_SUPPORTSATOMICFILECREATION = "supportsatomicfilecreation";
  329. /**
  330. * The "noprefix" key in the "diff" section
  331. * @since 3.0
  332. */
  333. public static final String CONFIG_KEY_NOPREFIX = "noprefix";
  334. /**
  335. * A "renamelimit" value in the "diff" section
  336. * @since 3.0
  337. */
  338. public static final String CONFIG_RENAMELIMIT_COPY = "copy";
  339. /**
  340. * A "renamelimit" value in the "diff" section
  341. * @since 3.0
  342. */
  343. public static final String CONFIG_RENAMELIMIT_COPIES = "copies";
  344. /**
  345. * The "renames" key in the "diff" section
  346. * @since 3.0
  347. */
  348. public static final String CONFIG_KEY_RENAMES = "renames";
  349. /**
  350. * The "inCoreLimit" key in the "merge" section. It's a size limit (bytes) used to
  351. * control a file to be stored in {@code Heap} or {@code LocalFile} during the merge.
  352. * @since 4.9
  353. */
  354. public static final String CONFIG_KEY_IN_CORE_LIMIT = "inCoreLimit";
  355. /**
  356. * The "prune" key
  357. * @since 3.3
  358. */
  359. public static final String CONFIG_KEY_PRUNE = "prune";
  360. /**
  361. * The "streamBuffer" key
  362. * @since 4.0
  363. */
  364. public static final String CONFIG_KEY_STREAM_BUFFER = "streamBuffer";
  365. /**
  366. * The "streamRatio" key
  367. * @since 4.0
  368. */
  369. public static final String CONFIG_KEY_STREAM_RATIO = "streamRatio";
  370. /**
  371. * Flag in the filter section whether to use JGit's implementations of
  372. * filters and hooks
  373. * @since 4.6
  374. */
  375. public static final String CONFIG_KEY_USEJGITBUILTIN = "useJGitBuiltin";
  376. /**
  377. * The "fetchRecurseSubmodules" key
  378. * @since 4.7
  379. */
  380. public static final String CONFIG_KEY_FETCH_RECURSE_SUBMODULES = "fetchRecurseSubmodules";
  381. /**
  382. * The "recurseSubmodules" key
  383. * @since 4.7
  384. */
  385. public static final String CONFIG_KEY_RECURSE_SUBMODULES = "recurseSubmodules";
  386. /**
  387. * The "required" key
  388. * @since 4.11
  389. */
  390. public static final String CONFIG_KEY_REQUIRED = "required";
  391. /**
  392. * The "lfs" section
  393. * @since 4.11
  394. */
  395. public static final String CONFIG_SECTION_LFS = "lfs";
  396. /**
  397. * The "i18n" section
  398. *
  399. * @since 5.2
  400. */
  401. public static final String CONFIG_SECTION_I18N = "i18n";
  402. /**
  403. * The "logOutputEncoding" key
  404. *
  405. * @since 5.2
  406. */
  407. public static final String CONFIG_KEY_LOG_OUTPUT_ENCODING = "logOutputEncoding";
  408. /**
  409. * The "filesystem" section
  410. * @since 5.1.9
  411. */
  412. public static final String CONFIG_FILESYSTEM_SECTION = "filesystem";
  413. /**
  414. * The "timestampResolution" key
  415. * @since 5.1.9
  416. */
  417. public static final String CONFIG_KEY_TIMESTAMP_RESOLUTION = "timestampResolution";
  418. /**
  419. * The "minRacyThreshold" key
  420. * @since 5.1.9
  421. */
  422. public static final String CONFIG_KEY_MIN_RACY_THRESHOLD = "minRacyThreshold";
  423. /**
  424. * The "refStorage" key
  425. *
  426. * @since 5.6.2
  427. */
  428. public static final String CONFIG_KEY_REF_STORAGE = "refStorage";
  429. /**
  430. * The "extensions" section
  431. *
  432. * @since 5.6.2
  433. */
  434. public static final String CONFIG_EXTENSIONS_SECTION = "extensions";
  435. /**
  436. * The extensions.refStorage key
  437. * @since 5.7
  438. */
  439. public static final String CONFIG_KEY_REFSTORAGE = "refStorage";
  440. /**
  441. * The "reftable" refStorage format
  442. * @since 5.7
  443. */
  444. public static final String CONFIG_REF_STORAGE_REFTABLE = "reftable";
  445. /**
  446. * The "jmx" section
  447. * @since 5.1.13
  448. */
  449. public static final String CONFIG_JMX_SECTION = "jmx";
  450. /**
  451. * The "pack.bigfilethreshold" key
  452. * @since 5.8
  453. */
  454. public static final String CONFIG_KEY_BIGFILE_THRESHOLD = "bigfilethreshold";
  455. /**
  456. * The "pack.bitmapContiguousCommitCount" key
  457. * @since 5.8
  458. */
  459. public static final String CONFIG_KEY_BITMAP_CONTIGUOUS_COMMIT_COUNT = "bitmapcontiguouscommitcount";
  460. /**
  461. * The "pack.bitmapDistantCommitSpan" key
  462. * @since 5.8
  463. */
  464. public static final String CONFIG_KEY_BITMAP_DISTANT_COMMIT_SPAN = "bitmapdistantcommitspan";
  465. /**
  466. * The "pack.bitmapExcessiveBranchCount" key
  467. * @since 5.8
  468. */
  469. public static final String CONFIG_KEY_BITMAP_EXCESSIVE_BRANCH_COUNT = "bitmapexcessivebranchcount";
  470. /**
  471. * The "pack.bitmapInactiveBranchAgeInDays" key
  472. * @since 5.8
  473. */
  474. public static final String CONFIG_KEY_BITMAP_INACTIVE_BRANCH_AGE_INDAYS = "bitmapinactivebranchageindays";
  475. /**
  476. * The "pack.bitmapRecentCommitSpan" key
  477. * @since 5.8
  478. */
  479. public static final String CONFIG_KEY_BITMAP_RECENT_COMMIT_COUNT = "bitmaprecentcommitspan";
  480. /**
  481. * The "pack.buildBitmaps" key
  482. * @since 5.8
  483. */
  484. public static final String CONFIG_KEY_BUILD_BITMAPS = "buildbitmaps";
  485. /**
  486. * The "pack.cutDeltaChains" key
  487. * @since 5.8
  488. */
  489. public static final String CONFIG_KEY_CUT_DELTACHAINS = "cutdeltachains";
  490. /**
  491. * The "pack.deltaCacheLimit" key
  492. * @since 5.8
  493. */
  494. public static final String CONFIG_KEY_DELTA_CACHE_LIMIT = "deltacachelimit";
  495. /**
  496. * The "pack.deltaCacheSize" key
  497. * @since 5.8
  498. */
  499. public static final String CONFIG_KEY_DELTA_CACHE_SIZE = "deltacachesize";
  500. /**
  501. * The "pack.deltaCompression" key
  502. * @since 5.8
  503. */
  504. public static final String CONFIG_KEY_DELTA_COMPRESSION = "deltacompression";
  505. /**
  506. * The "pack.depth" key
  507. * @since 5.8
  508. */
  509. public static final String CONFIG_KEY_DEPTH = "depth";
  510. /**
  511. * The "pack.minSizePreventRacyPack" key
  512. * @since 5.8
  513. */
  514. public static final String CONFIG_KEY_MIN_SIZE_PREVENT_RACYPACK = "minsizepreventracypack";
  515. /**
  516. * The "pack.reuseDeltas" key
  517. * @since 5.8
  518. */
  519. public static final String CONFIG_KEY_REUSE_DELTAS = "reusedeltas";
  520. /**
  521. * The "pack.reuseObjects" key
  522. * @since 5.8
  523. */
  524. public static final String CONFIG_KEY_REUSE_OBJECTS = "reuseobjects";
  525. /**
  526. * The "pack.singlePack" key
  527. * @since 5.8
  528. */
  529. public static final String CONFIG_KEY_SINGLE_PACK = "singlepack";
  530. /**
  531. * The "pack.threads" key
  532. * @since 5.8
  533. */
  534. public static final String CONFIG_KEY_THREADS = "threads";
  535. /**
  536. * The "pack.waitPreventRacyPack" key
  537. * @since 5.8
  538. */
  539. public static final String CONFIG_KEY_WAIT_PREVENT_RACYPACK = "waitpreventracypack";
  540. /**
  541. * The "pack.window" key
  542. * @since 5.8
  543. */
  544. public static final String CONFIG_KEY_WINDOW = "window";
  545. /**
  546. * The "pack.windowMemory" key
  547. * @since 5.8
  548. */
  549. public static final String CONFIG_KEY_WINDOW_MEMORY = "windowmemory";
  550. /**
  551. * The "feature" section
  552. *
  553. * @since 5.9
  554. */
  555. public static final String CONFIG_FEATURE_SECTION = "feature";
  556. /**
  557. * The "feature.manyFiles" key
  558. *
  559. * @since 5.9
  560. */
  561. public static final String CONFIG_KEY_MANYFILES = "manyFiles";
  562. /**
  563. * The "index" section
  564. *
  565. * @since 5.9
  566. */
  567. public static final String CONFIG_INDEX_SECTION = "index";
  568. /**
  569. * The "version" key
  570. *
  571. * @since 5.9
  572. */
  573. public static final String CONFIG_KEY_VERSION = "version";
  574. }