aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | junit.FakeIndexFactory: Easy fake indexes for testsIvan Frade2025-01-271-0/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Utility to create fake indexes. This simplify unit testing code that requires an index. Change-Id: I30f60cbd37ad5b48f4d919be265bfbf9a7fe57c4
* | | | | | | Merge changes I5e7323c6,I5e66a512,I0859990fMatthias Sohn2025-01-2828-234/+394
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: RefDatabase#getReflogReader(String): use #exactRef to resolve refName Deprecate Repository#getReflogReader methods Add RefDatabase#getReflogReader methods
| * | | | | | RefDatabase#getReflogReader(String): use #exactRef to resolve refNameMatthias Sohn2025-01-2710-60/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't accept short ref names anymore which is more predictable. Change-Id: I5e7323c610c68b25facd6f2286456716d8e6cf1a
| * | | | | | Deprecate Repository#getReflogReader methodsMatthias Sohn2025-01-2722-191/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead use Repository.getRefDatabase().getReflogReader(). Change-Id: I5e66a512c12e11d0ec3275fffde4adb8483430f2
| * | | | | | Add RefDatabase#getReflogReader methodsMatthias Sohn2025-01-278-33/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to fix broken abstraction in FileRepository#getReflogReader(String). How to get a ReflogReader depends on the chosen RefDatabase implementation, hence the #getReflogReader methods should be there. This also fixes a bug in FileRepository#getReflogReader(Ref) which didn't work if FileReftableDatabase was used as RefDatabase since it always returned the implementation only suitable for RefDirectory. Change-Id: I0859990f9390ab96596b6c344966c687dfbbf167
* | | | | | | Merge "Fix ObjectDirectoryTest#testOpenLooseObjectPropagatesIOExceptions"Matthias Sohn2025-01-271-6/+11
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Fix ObjectDirectoryTest#testOpenLooseObjectPropagatesIOExceptionsMatthias Sohn2025-01-171-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By instrumenting "LooseObjects#open" with print statements (since debugging mocks doesn't work in Eclipse) I found that the constructor "LooseObjects(Config, File)" which defaults "core.trustFolderStat" to "true" isn't used when mocking LooseObjects. Hence "core.trustFolderStat" is in fact "false" in the mocked LooseObjects object. Make this explicit by configuring "trustFolderStat=false" in a real "LooseObjects" object and only mock its method "#getObjectLoader" using a spy. Change-Id: I2f870637db818c2e89c1c2a174bf78bd572a367a
* | | | | | | Update org.assertj:assertj-core to 3.27.3Matthias Sohn2025-01-277-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I513ed40eded5abe8511494875eeb6849592c643e
* | | | | | | Update bytebuddy to 1.16.1Matthias Sohn2025-01-267-18/+18
|/ / / / / / | | | | | | | | | | | | | | | | | | Change-Id: I3cb485de38d338735ee7856ab18789dc9f9dfb60
* | | | | | Add target platform jgit-4.35 for Eclipse 2025-03Matthias Sohn2025-01-163-0/+325
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4211fe2529638509865624fe69332b3b5b67bfe1
* | | | | | Update bouncycastle to 1.80Matthias Sohn2025-01-166-29/+25
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4bd82f562c8b7d4e9b934bc0a0519f4060c81d12
* | | | | | Update Apache commons-codec to 1.17.2Matthias Sohn2025-01-166-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibec1f2821d82855337e166bc65afd7c5b98dc5f2
* | | | | | Merge "FileReftableTest: fix order of arguments when using assertEquals"Matthias Sohn2025-01-091-16/+16
|\ \ \ \ \ \
| * | | | | | FileReftableTest: fix order of arguments when using assertEqualsMatthias Sohn2025-01-061-16/+16
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The expected value is the first argument and the actual value the second argument. Change-Id: I8416cfeaa7a14d0b863658bf133473535647fc57
* / / / / / Set repositoryformatversion=0 when converting refStorage to filesyoutirsin2025-01-091-0/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://git-scm.com/docs/repository-version#_version_1 Change-Id: Ic71e55f5dfd4dacedabe54a5881a56b72659f3bc Signed-off-by: youtirsin <youtirsin@qq.com>
* | | | | Update org.assertj:assertj-core to 3.27.2Matthias Sohn2025-01-056-10/+10
| | | | | | | | | | | | | | | | | | | | Change-Id: I8389402492f0729837f0aa2d41f1f69eb1b27334
* | | | | Update mockito to 5.15.2Matthias Sohn2025-01-036-10/+10
| | | | | | | | | | | | | | | | | | | | Change-Id: Ic0e65e2ccd5dbd7298d8fb425a67368371462be6
* | | | | Update org.assertj:assertj-core to 3.27.1Matthias Sohn2025-01-036-10/+10
| | | | | | | | | | | | | | | | | | | | Change-Id: I90999c8d67adce2d510c2dc2d428090a1890c6ff
* | | | | Update jna to 5.16.0Matthias Sohn2025-01-036-15/+15
| | | | | | | | | | | | | | | | | | | | Change-Id: I1b3ac396297968174f46afda70e7292eed19210d
* | | | | WriteReftable: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-2/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: I70e9980bd7337f3f3e7c709fe16b91461cbbad7b
* | | | | SimpleMergeTest: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-1/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: Ic40473aecb23e22c755a9e041592886fb3c448f9
* | | | | RevCommitParseTest: : use java.time instead of java.util.Date APIMatthias Sohn2024-12-291-10/+15
| | | | | | | | | | | | | | | | | | | | Change-Id: I6cf6ed64b4029001cb5908338b60385804eb9997
* | | | | PushCertificateStoreTest: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-2/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I600538d0ea7ec4377af331341b8e4e2d51a5a51d
* | | | | ReftableTest: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-12/+26
| | | | | | | | | | | | | | | | | | | | Change-Id: I63c37a0fb0f6070aba3947903e79d8ebc014f52d
* | | | | ReflogWriterTest: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-1/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I8e1b82c76403493faa00ec1a30a6d57a695d8573
* | | | | RebaseCommandTest: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-6/+11
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib5e367c88662defc0471a0487a576bb4b750b778
* | | | | RebaseCommand: use java.time instead of java.util.Date APIMatthias Sohn2024-12-291-8/+13
| | | | | | | | | | | | | | | | | | | | Change-Id: I3004d5b586b674e81cc76d0b01cef424d0b1f7f8
* | | | | GitLinkMergeTest: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-1/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I9a3f558ff578266a34f45ebf3026c7a093dd6f3c
* | | | | CherryPickTest: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-1/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: Id0e61babb768d29d6317cc216eeaa5054e5fc869
* | | | | BlockReader: use java.time instead of java.util.Date APIMatthias Sohn2024-12-291-3/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: Iea1147f89fb14821b7d052d4e9c3397033dfade4
* | | | | ReflogConfigTest: use java.time instead of java.util.Date APIMatthias Sohn2024-12-291-8/+11
| | | | | | | | | | | | | | | | | | | | Change-Id: I00c63c928ad64a447ad101e01508d917de26bd71
* | | | | ChangeIdUtilTest: use java.time instead of java.util.Date APIMatthias Sohn2024-12-291-6/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: Ideb32d24c78aa8f42546d9098991257ab6f205c4
* | | | | SignatureUtils: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ibf38c44d6893a1ce3baf83f8f0dbc06d1c8405ad
* | | | | Replace use of deprecated constructor AttributesHandler(TreeWalk)Matthias Sohn2024-12-293-9/+14
| | | | | | | | | | | | | | | | | | | | Change-Id: Ie0b39e0c41bf2827af5f6282ea33ebd21afd47f6
* | | | | WindowCache: fix "empty control-flow statement" warningMatthias Sohn2024-12-291-1/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I61259fc76454b473aee92dc96180219e5f4a4084
* | | | | RevCommit: replace deprecated RawParseUtils#headerEndMatthias Sohn2024-12-291-4/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I4e61af621b63b0715596b5a8c7d8eb985d64ce26
* | | | | GarbageCollectCommandTest: replace deprecated GitDateParserMatthias Sohn2024-12-291-11/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: Ide7f67345fa9a63da16562eed76ca5b2a88b8f8a
* | | | | GcLog: replace deprecated GitDateParser with GitTimeParserMatthias Sohn2024-12-291-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are moving from java.util.Date to java.time APIs. Change-Id: I6f99d52c2e5bd4734ac1fe5378eed29b398e8c25
* | | | | DfsGarbageCollectorTest: replace deprecated PersonIdent constructorMatthias Sohn2024-12-291-23/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are moving away from java.util.Date to java.time APIs. Change-Id: Ifad3fce57f4a742289a5a687a7cf8776fff6bf1c
* | | | | Merge changes If4d68363,I1d1f174f,I107af033Matthias Sohn2024-12-283-10/+11
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: PackWriterBitmapPreparer: Use SystemReader.now() instead of deprecated method TestRepository: Stop using deprecated methods in SystemReader DfsGarbageCollector: Use SystemReader.now() instead of getCurrentTime()
| * | | | | PackWriterBitmapPreparer: Use SystemReader.now() instead of deprecated methodIvan Frade2024-12-271-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SystemReader.getCurrentTime() is deprecated. Change-Id: If4d683633a77eec9b4cc32daed00254fbaa3114b
| * | | | | TestRepository: Stop using deprecated methods in SystemReaderIvan Frade2024-12-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1d1f174f739137c24fb586cb2f6d054d4785d716
| * | | | | DfsGarbageCollector: Use SystemReader.now() instead of getCurrentTime()Ivan Frade2024-12-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getCurrentTime() is deprecated. Use now() that returns an Instant. Change-Id: I107af03342e6815d97181d6dccd94e2fae2d3b21
* | | | | | TransportHttpTest: use java.time APIMatthias Sohn2024-12-281-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are moving away from the old java.util.Date API to the java.time API. Change-Id: I6d2ff9d0dfb81ca8385f8776e3fa73e090247b79
* | | | | | GC tests: use java.time APIMatthias Sohn2024-12-282-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are moving away from the old java.util.Date API to the java.time API. Change-Id: Ie645d7bf4e958f6602ec106e8c2296d675f62904
* | | | | | TestRepositoryTest: use java.time APIMatthias Sohn2024-12-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are moving away from the old java.util.Date API to the java.time API. Change-Id: Iffcb6ff709cbc101e0700520b8312328ff70b2eb
* | | | | | GarbageCollectCommand, GC: use java.time APIMatthias Sohn2024-12-285-25/+122
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are moving away from the old java.util.Date API to the java.time API. Add GitTimeParser#parseInstant to support this. Change-Id: I3baeafeda5b65421dc94c1045b0ba576d4f79662
* | | | | DescribeCommand: use java.time APIMatthias Sohn2024-12-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are moving away from the old java.util.Date API to the java.time API. Change-Id: I46b1f12192fe40d3bb740c3ce8632fffcd5fc5de
* | | | | Blame: use java.time APIMatthias Sohn2024-12-251-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are moving away from the old java.util.Date API to the java.time API. Change-Id: Ib54d66848b920436c40f7f754193a4dee9566feb
* | | | | RebuildCommitGraph: use java.time APIMatthias Sohn2024-12-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are moving away from the old java.util.Date API to the java.time API. Change-Id: I6e52a4f37180a079f592b5002c3a34c6fb7c8a97