aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated RawParseUtils#UTF8_CHARSETMatthias Sohn2024-09-031-8/+0
| | | | Change-Id: I4b3f1344f77a575b2d0e00462806eddb4e9a6b80
* Remove deprecated FS#setAsyncFileStoreAttributes methodMatthias Sohn2024-09-031-15/+0
| | | | Change-Id: Iea9f61fd65772ab247b382c93035e3c9974705aa
* FS, FS_Posix: remove deprecated #createNewFile(File) methodMatthias Sohn2024-09-032-86/+0
| | | | Change-Id: Id34a0be998eee360e69f74b469c4990afa153c1b
* Remove deprecated lastModified methods using longMatthias Sohn2024-09-034-116/+0
| | | | | | | | | | | | | | from - FileUtils#lastModified - FileUtils#setLastModified - FS#getLastModifiedTime - FS#lastModified - FS#setLastModified - FileTreeIterator.Entry#getEntryLastModified - WorkingTreeIterator#getEntryLastModified - WorkingTreeIterator.Entry#getEntryLastModified Change-Id: I5073f05c32f8f626383a91048470c79332983121
* UserAgent: remove deprecated #getAgent, #hasAgent methodsMatthias Sohn2024-09-031-41/+0
| | | | Change-Id: Ib53de6dabea7f73ecfde85cb30f49fa05ee48551
* Remove deprecated Transport#getFilterBlobLimit methodsMatthias Sohn2024-09-031-22/+0
| | | | Change-Id: Ia72cc228b0acaa8df8f405bd224916cc76eadd22
* Remove deprecated RefAdvertiser#send(Map<String, Ref>) methodMatthias Sohn2024-09-031-21/+0
| | | | Change-Id: Ifffcfa6bf9baf9f6879a5a7e0f05d317347983f6
* Remove deprecated ReceivePack#setEchoCommandFailures methodMatthias Sohn2024-09-031-16/+0
| | | | Change-Id: Ieeeb33b8b3dc8272023af5d47b3330f4a94c5b96
* Remove deprecated class ReceivePack.FirstLineMatthias Sohn2024-09-031-46/+0
| | | | Change-Id: I1143612088dba4fdced8f14c97293d17ff9658bb
* PacketLineIn: make deprecated #END and #DELIM privateMatthias Sohn2024-09-031-13/+2
| | | | Change-Id: I1b7ba9f7e3dffe54313fc5d27051ad56a02a05b9
* WindowCacheStats: remove deprecated #getOpenFiles, #getOpenBytesMatthias Sohn2024-09-031-21/+0
| | | | Change-Id: If254177fd7914cb1f909f6620032bb4016208855
* Remove deprecated PatchApplier#applyPatch(InputStream)Matthias Sohn2024-09-031-27/+0
| | | | Change-Id: I79923b95861af983b676d436938aaeebe8c5b658
* Remove deprecated MergeMessageFormatter#formatWithConflictsMatthias Sohn2024-09-031-18/+0
| | | | Change-Id: I3040f655318c47f268433294720a99325ae78863
* Remove deprecated MergeFormatter#formatMerge using charset nameMatthias Sohn2024-09-031-31/+0
| | | | Change-Id: I7d0bdb61a8698e94bb40c22fe1c40c70cec65dfc
* Remove deprecated MergeFormatter#formatMerge using charset nameMatthias Sohn2024-09-031-34/+0
| | | | Change-Id: Id2bdcb865203ed192fea35cfcf82c34667710726
* Remove deprecated TagBuilder#toByteArray methodMatthias Sohn2024-09-031-17/+0
| | | | Change-Id: I14e78bcd4bbdb491bcc44a53ff19609b79c0831b
* Remove deprecated Repository#hasObject(AnyObjectId) methodMatthias Sohn2024-09-031-19/+0
| | | | Change-Id: I473dff6bdc23cfb126d22e18c168390a0e21301d
* Make deprecated Repository#peel(Ref) privateMatthias Sohn2024-09-031-3/+1
| | | | Change-Id: I1c16196bba00a5d0f54c10261cc08185305ba4a3
* Remove deprecated RefDatabase#getRef(String) methodMatthias Sohn2024-09-031-17/+0
| | | | Change-Id: I89f42db2b9dabee18d4220457436b9f9b6340f50
* CoreConfig: remove deprecated #isLogAllRefUpdates methodMatthias Sohn2024-09-031-19/+0
| | | | Change-Id: I4e5f96696b57512488f48e66a82760b2e8671878
* Constants: remove deprecated #CHARSET and #CHARACTER_ENCODINGMatthias Sohn2024-09-031-23/+1
| | | | Change-Id: If2d3c1a96560e0bc5e352bdbcab4c191cbed1a42
* Remove deprecated ConfigConstants#CONFIG_KEY_STREAM_FILE_TRESHOLDMatthias Sohn2024-09-031-6/+0
| | | | Change-Id: I3521ba8f8456160bd18ccb22c7d4a131aaac4ff2
* Remove deprecated CommitBuilder#setEncoding(String) methodMatthias Sohn2024-09-031-13/+0
| | | | Change-Id: I5bd8d0c292151bfa58325d51ef51928715871cf1
* Remove deprecated static #equals(AnyObjectId, AnyObjectId) methodMatthias Sohn2024-09-031-17/+0
| | | | Change-Id: I72544d2b3c85b8f96c2b8f94b86fb9b362f09475
* Remove deprecated FileSnapshot.save(long) methodMatthias Sohn2024-09-031-23/+0
| | | | Change-Id: I9b77142127cc96ee6658e85a6cf0586d941c5c0c
* Remove deprecated lastModified accessors returning longMatthias Sohn2024-09-032-22/+0
| | | | | | | - FileSnapshot#lastModified - LockFile#getCommmitLastModified Change-Id: I6962166ca5decbb332dfb25851c93debfe2ca90c
* Remove deprecated PackInvalidException constructorsMatthias Sohn2024-09-031-24/+0
| | | | Change-Id: I8db6b1dd8e39811ebde676389833dbc906106452
* DirCacheEntry: remove deprecated methodsMatthias Sohn2024-09-031-50/+0
| | | | | | | | - boolean mightBeRacilyClean(int, int) - long getLastModified() - void setLastModified(long) Change-Id: I428fbb2109e13e80b8655622531c10e55a922a6f
* Remove deprecated DirCacheCheckout#checkoutEntry methodsMatthias Sohn2024-09-031-121/+0
| | | | Change-Id: I28d00d7a70af0fbb76e237dd77b929508720ecdb
* Remove deprecated StashApplyCommand#setApplyUntracked methodMatthias Sohn2024-09-031-13/+0
| | | | Change-Id: I23e3ed3259edad3a22b59cca938f041b39ebf0cb
* Remove deprecated StashApplyCommand#setApplyIndex methodMatthias Sohn2024-09-031-12/+0
| | | | Change-Id: I2183285f6ccba1b62a318e711f2451df5d083ca1
* Remove deprecated RemoteSetUrlCommand#setUri methodMatthias Sohn2024-09-031-12/+0
| | | | Change-Id: Ib9041be0d88dd837aa68eda2b00f3aa9ebc54c27
* Remove deprecated RemoteSetUrlCommand#setPush methodMatthias Sohn2024-09-031-17/+0
| | | | Change-Id: I4026531148a7560179dae89c05424f256e6600d2
* Remove deprecated RemoteSetUrlCommand#setName methodMatthias Sohn2024-09-031-12/+0
| | | | Change-Id: I769e999b5990f83719e3c638da9dfd0be4c5b826
* Remove deprecated RemoteRemoveCommand#setName methodMatthias Sohn2024-09-031-12/+0
| | | | Change-Id: I2bd2a213b4642283b11f787ffcbab29916e2c5e7
* Remove deprecated CheckoutCommand#setForce methodMatthias Sohn2024-09-031-18/+0
| | | | Change-Id: Ie0b59ec21fc8dbe18242bbb52cb794e5a02c1ed5
* Merge branch 'master' into stable-7.0Matthias Sohn2024-08-307-161/+22
|\ | | | | | | | | | | | | | | | | | | | | | | * master: walks: Remove deprecated #createReachabilityChecker() method RepoCommand.RemoteReader: Remove @Deprecated method ReachabilityChecker: Remove @Deprecated method UploadPack: Remove @Deprecated classes and methods ObjectId: Add method to read an ObjectId from a ByteBuffer DfsPackFile: re-add metrics for bitmap index loads Change-Id: I383c9784ced95dfd58f01454fd13b086b180d462
| * walks: Remove deprecated #createReachabilityChecker() methodIvan Frade2024-08-292-41/+1
| | | | | | | | Change-Id: If9375ac49fa82e988e0708d89f0f929495e6e7cc
| * RepoCommand.RemoteReader: Remove @Deprecated methodIvan Frade2024-08-291-26/+0
| | | | | | | | | | | | Cleaning up before 7.0 release. Change-Id: I83db715a8170a54957dd5bcf38df5b0911a12107
| * ReachabilityChecker: Remove @Deprecated methodIvan Frade2024-08-291-34/+0
| | | | | | | | | | | | Cleaning up before 7.0 release. Change-Id: I620c3a485785b3d1efc950317fe552b8465a479e
| * UploadPack: Remove @Deprecated classes and methodsIvan Frade2024-08-291-60/+1
| | | | | | | | | | | | | | The coming 7.0 release is a chance to clean up these deprecated classes and methods. Change-Id: I23d263c9244c1e0096eb7c96c290213c9e668a03
| * ObjectId: Add method to read an ObjectId from a ByteBufferIvan Frade2024-08-291-0/+17
| | | | | | | | | | | | | | | | | | Some storages return data in a convenient ByteBuffer wrapper, but there is no straigh-forward method to read ObjectIds from it. Add ObjectId#fromRaw(ByteBuffer) to read object ids from byte buffers. Change-Id: Ia3b244005e4d9a613294f5ad9dab3b8e7bc3d7df
| * DfsPackFile: re-add metrics for bitmap index loadsSam Delmerico2024-08-271-0/+3
| | | | | | | | | | | | | | | | | | The calculations for readBitmapIdxBytes and readBitmapIdxMicros metrics were unintentionally removed in https://gerrithub.io/c/eclipse-jgit/jgit/+/1177262, so this change adds those metrics back. Change-Id: I7ac7769acd092680933a27b2b3e70dd67690cfbf
* | PackObjectSizeIndexV1: fix boxing warningsMatthias Sohn2024-08-281-2/+4
| | | | | | | | Change-Id: I25e6194fb8bf09dcac1613cec8349c3893a4f81a
* | Suppress non-externalized string warningsMatthias Sohn2024-08-283-4/+5
|/ | | | | | for texts which don't need to be translatable. Change-Id: Iacac5df9525ddbc9942b7c440450b6aad4864135
* DfsReaderIoStats: getters to object size index micros/bytesIvan Frade2024-08-271-0/+18
| | | | | | | These properties of the stats object don't have a getter and it is required to export those values in logs. Change-Id: I7f91a38ee4d02668aff1cbc8424ea669cdb1d2f7
* Merge branch 'stable-6.10'Matthias Sohn2024-08-272-4/+19
|\ | | | | | | | | | | | | | | * stable-6.10: AmazonS3: Ensure SAXParserFactory sets valid/expected input params LockFile: Retry lock creation if parent dirs were removed Change-Id: I599f698f812e11ae37843cac2333c9971ec30dd8
| * AmazonS3: Ensure SAXParserFactory sets valid/expected input paramsMatthias Sohn2024-08-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Change Ie8a9d411fc19e8b7bf86c0b4df0b02153a0e9444 broke setting valid/expected input parameters for the XML parser. This can be fixed by calling SaxParserFactory#setNamespaceAware, see [1]. Also see earlier fix in [2]. [1] https://stackoverflow.com/questions/24891323/namespace-handling-with-sax-in-java [2] I05e993032ab3a6afb78634290b578ebc73cf1cbd Bug: jgit-87 Change-Id: Id4e9eebac8d9de81e5d48a608066db3cc862e15c
| * LockFile: Retry lock creation if parent dirs were removedKaushik Lingarkar2024-08-211-2/+15
| | | | | | | | | | | | | | | | | | | | In the small window between creation of the lock file's parent dirs and the lock file itself, the parent dirs may be cleaned by an external process packing refs in the repository. When this scenario occurs, retry creating the lock file (along with its parent dirs). Change-Id: Id7ec60c3f7f373b59f1dc8de6b8fa6df6bdf2570 Signed-off-by: Kaushik Lingarkar <quic_kaushikl@quicinc.com>
* | Signing: refactor interfacesThomas Wolf2024-08-2420-731/+759
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a big API-breaking change cleaning up the signing interfaces. Initially, these interfaces were GPG/OpenPGP-specific. When EGit added new signers and signature verifiers that called an external GPG executable, they were found inadequate and were extended to be able to pass in the GpgConfig to get access to the "gpg.program" setting. With the introduction of X.509 S/MIME signing, it was discovered that the interfaces were still not quite adequate, and the "Gpg" prefix on the class names were confusing. Since 7.0 is a major version bump, I'm taking this chance to overhaul these interfaces from ground up. For signing, there is a new Signer interface. With it goes a SignerFactory SPI interface, and a final Signers class managing the currently set signers. By default, signers for the different signature types are created from the signer factories, which are discovered via the ServiceLoader. External code can install its own signers, overriding the default factories. For signature verification, exactly the same mechanism is used. This simplifies the setup of signers and signature verifiers, and makes it all more regular. Signer instances just get a byte[] to sign and don't have to worry about ObjectBuilders at all. SignatureVerifier instances also just get the data and signature as byte[] and don't have to worry about extracting the signature from a commit or tag, or about what kind of signature it is. Both Signers and SignatureVerifiers always get passed the Repository and the GpgConfig. The repository will be needed in an implementation for SSH signatures because gpg.ssh.* configs may need to be loaded explicitly, and some of those values need the current workspace location. For signature verification, there is exactly one place in core JGit in SignatureVerifiers that extracts signatures, determines the signature type, and then calls the right signature verifier. Change RevTag to recognize all signature types known in git (GPG, X509, and SSH). Change-Id: I26d2731e7baebb38976c87b7f328b63a239760d5 Signed-off-by: Thomas Wolf <twolf@apache.org>