diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java index 46ec87df5..c50e03869 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java @@ -29,6 +29,7 @@ import org.eclipse.jgit.internal.storage.pack.PackExt; import org.eclipse.jgit.lib.AnyObjectId; import org.eclipse.jgit.lib.ObjectDatabase; +import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.ObjectInserter; import org.eclipse.jgit.lib.ObjectReader; @@ -57,6 +58,8 @@ public void markDirty() { } }; + private static final Set shallowCommits = Collections.emptySet(); + /** * Sources for a pack file. *

@@ -504,6 +507,19 @@ protected abstract ReadableChannel openFile( protected abstract DfsOutputStream writeFile( DfsPackDescription desc, PackExt ext) throws IOException; + @Override + public Set getShallowCommits() throws IOException { + return shallowCommits; + } + + @Override + public void setShallowCommits(Set shallowCommits) { + if (!shallowCommits.isEmpty()) { + throw new UnsupportedOperationException( + "Shallow commits expected to be empty."); + } + } + void addPack(DfsPackFile newPack) throws IOException { PackList o, n; do {