API Changes and Migration Hints | ||
---|---|---|
![]() |
![]() |
|
Performance Improvements | Bug Fixes |
Details of API changes in 3.0 compared to the previous release 2.3.1 are available in the Clirr API change report linked from the JGit download page.
Applications are not supposed to build against the internal storage API unless they can accept API churn and make necessary updates as versions change.
In order to construct specific Repository instances use the respective builder classes:
Instead of
WindowCacheConfig c = new WindowCacheConfig(); ... set new configuration params ... WindowCache.reconfigure(c);
use
WindowCacheConfig c = new WindowCacheConfig(); ... set new configuration params ... WIndowCacheConfig.install()
Creation of a FollowFilter now needs an explicit DiffConfig, this was necessary to fix an NPE (see https://git.eclipse.org/r/#/c/12499)
public static FollowFilter create(String path, DiffConfig cfg)
The interfaces ReflogReader and ReflogEntry exposed by ReflogCommand and Repository were moved to package org.eclipse.jgit.lib.
![]() |
![]() |
![]() |
Performance Improvements | Bug Fixes |