aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Remove deprecated DirCacheCheckout#checkoutEntry methodsMatthias Sohn2024-09-032-125/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Remove deprecated CheckoutCommand#setForce method" into stable-7.0Luca Milanesio2024-09-030-0/+0
|\ \ \ \ \ \
| * | | | | | Remove deprecated CheckoutCommand#setForce methodMatthias Sohn2024-09-031-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I39cfbeba0171c66e0f03b7b3785313da55b1dcac
* | | | | | | Remove deprecated CheckoutCommand#setForce methodMatthias Sohn2024-09-031-18/+0
|/ / / / / / | | | | | | | | | | | | | | | | | | Change-Id: Ie0b59ec21fc8dbe18242bbb52cb794e5a02c1ed5
* | | | | | Remove deprecated static AnyLongObjectId#equals methodMatthias Sohn2024-09-031-19/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie67b9a4a5e1972ec3aebf50e058a9aabf5a20099
* | | | | | Remove deprecated LocalDiskRepositoryTestCase#create(boolean,boolean)Matthias Sohn2024-09-032-30/+6
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9eff2d405b5302753ff2ec1d0eab431bdba69fe0
* | | | | | Merge branch 'master' into stable-7.0Matthias Sohn2024-08-308-161/+35
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-292-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Remove unused API warning filtersMatthias Sohn2024-08-281-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If5cfd8963db0699669be3594e844e14d38f97943
* | | | | | | ObjectDirectoryTest: ensure WindowCursor is closedMatthias Sohn2024-08-281-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I75b7d36181a0d404d4e3dca17b9e436892d97b42
* | | | | | | PackExtBlockCacheTableTest: fix empty block warningMatthias Sohn2024-08-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I35e7527c6c555cd57fce14889412fa2fd6beab88
* | | | | | | PackExtBlockCacheTableTest: suppress unchecked conversion warningsMatthias Sohn2024-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5fcad7a824c4a320683d11da52c4e2035231f85d
* | | | | | | PackObjectSizeIndexV1: fix boxing warningsMatthias Sohn2024-08-281-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I25e6194fb8bf09dcac1613cec8349c3893a4f81a
* | | | | | | PackExtBlockCacheTableTest: suppress boxing warning on test classMatthias Sohn2024-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie9d5da0c065ba0118927d530ed589952fb3b2c2b
* | | | | | | DfsBlockCacheConfigTest: suppress boxing warning on test classMatthias Sohn2024-08-281-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibe7edc5e53c3d467e0e6144a3f8a32989f1ac6af
* | | | | | | Suppress non-externalized string warningsMatthias Sohn2024-08-283-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for texts which don't need to be translatable. Change-Id: Iacac5df9525ddbc9942b7c440450b6aad4864135
* | | | | | | Update jakarta.servlet:jakarta.servlet-api to 6.1.0Matthias Sohn2024-08-2820-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie95e0247e6a23a16343e0f644d613dfe95fd2d1e
* | | | | | | Update org.apache.commons:commons-compress to 1.27.1Matthias Sohn2024-08-2822-42/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibd48bfe5ec3fdd3d52d755dc4881e013aae21d5d
* | | | | | | Update org.tukaani:xz to 1.10Matthias Sohn2024-08-2820-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibd565d4d4e5ef0dd32514fdc6d73b44c25aaa27f
* | | | | | | Update org.assertj:assertj-core to 3.26.3Matthias Sohn2024-08-2820-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I37816b1700bbcd102eb5b1b2591ba493edea4b36
* | | | | | | Update org.apache.commons:commons-lang3 to 3.16.0Matthias Sohn2024-08-2819-37/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7ec0cf1090aab26c1b1f70f816963fba63405034
* | | | | | | Update bytebuddy to 1.15.0Matthias Sohn2024-08-2820-57/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idec6369bb5da997e532b912c2984b51e77a3ac0d
* | | | | | | Update commons-logging:commons-logging to 1.3.4Matthias Sohn2024-08-2820-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3dba27df9425484fdc630b067ddb19a2425aa891
* | | | | | | Update commons-codec:commons-codec to 1.17.1Matthias Sohn2024-08-2820-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie78b1479ec95632981033342e65d546fc7bd905d
* | | | | | | Update jetty to 12.0.12Matthias Sohn2024-08-2820-3884/+3884
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8b4381fcd067280050f31d6b8526c9f409244b55
* | | | | | | Prepare 7.0.0-SNAPSHOT buildsMatthias Sohn2024-08-2889-123/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifa0a549e9551a2016241169e1c1e9052174c49d1
* | | | | | | JGit v7.0.0.202408271414-rc1v7.0.0.202408271414-rc1Matthias Sohn2024-08-2789-123/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I969947a7c5fef72ed0c2f50e96a60787474f9906
* | | | | | | Merge branch 'master' into stable-7.0Matthias Sohn2024-08-2741-1080/+1028
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: DfsReaderIoStats: getters to object size index micros/bytes Do not set headers if response is already committed AmazonS3: Ensure SAXParserFactory sets valid/expected input params Signing: refactor interfaces Add a missing license header LockFile: Retry lock creation if parent dirs were removed GpgConfig: Add missing @since DfsReaderIoStats: Order fields and methods consistently Change-Id: I81bf15379c25e3ba69dda222c6980648fff07ec5
| * | | | | | 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>
| * | | | | | Do not set headers if response is already committedMax Haslbeck2024-08-271-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes issues when the response headers were already set and sent to the client. In all other cases this is a no-op. Change-Id: Ifb429e78f721cc514bb6eb1a3ef3412425cd2f1c Signed-off-by: Max Haslbeck <haslbeck@google.com>
| * | | | | | Signing: refactor interfacesThomas Wolf2024-08-2436-1043/+943
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | Add a missing license headerThomas Wolf2024-08-241-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iccb922ea73b0bfd6360ea2182b88c520a951a0a2 Signed-off-by: Thomas Wolf <twolf@apache.org>
| * | | | | | GpgConfig: Add missing @sinceThomas Wolf2024-08-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie56e7d8f2defe10a87565056a1763288d5b1e1a6 Signed-off-by: Thomas Wolf <twolf@apache.org>
| * | | | | | DfsReaderIoStats: Order fields and methods consistentlyIvan Frade2024-08-201-34/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As fields and getters were added, we didn't respect the (hard to see) existing order. Reorder with the following criteria: Methods: xCacheHits() (for all indexes in index order), xCount() (same), xBytes() (same), xMicros() (same). Index order: primary, reverse, bitmap, commit-graph, object-size Change-Id: I28f1d8121070d4357d566e3683947a26ceb3ba04
* | | | | | | Prepare 7.0.0-SNAPSHOT buildsMatthias Sohn2024-08-2189-123/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I07b258a9f94823c9c390daf6e1d3034ca5ace81f
* | | | | | | JGit v7.0.0.202408202050-m3Matthias Sohn2024-08-2089-123/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Change-Id: I44280658582c23ca0d9b85c4c24a1c2e7b82c6d8