]> source.dussan.org Git - jgit.git/commit
Provide default shallowCommits getter and setter in ObjectDatabase 85/195085/11
authorRonald Bhuleskar <funronald@google.com>
Sat, 6 Aug 2022 00:30:55 +0000 (17:30 -0700)
committerJonathan Nieder <jrn@google.com>
Mon, 8 Aug 2022 22:30:00 +0000 (18:30 -0400)
commit8542bf790e156c0e9c0ab43648ca7f9f97a69836
tree2102e073c79b0599dadb54cd244e4c2c263376dc
parent5709317f71ccaf26eceaa896150f203879b634b8
Provide default shallowCommits getter and setter in ObjectDatabase

I649db9ae679ec2606cf7c530b040f8b6b93eb81a added a default implementation
for getShallowCommits and setShallowCommits to DfsObjDatabase, for the
convenience of any implementers that define subclasses. But we forgot
that some implementers inherit from ObjectDatabase directly instead.
Move the default getter and setter to the base class so that such
callers do not need source changes to unbreak their build.

This also lets us update the api_filters to reflect that this is no
longer an API-breaking change.

Change-Id: I5dcca462eb306e511e57907b7d9264d51b3f3014
org.eclipse.jgit/.settings/.api_filters
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java