Browse Source

Merge "Support {get,set}GitwebDescription on InMemoryRepository"

stable-4.6
David Pursehouse 8 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
3e52252622
  1. 13
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java

13
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java

@ -16,6 +16,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock;
import org.eclipse.jgit.annotations.Nullable;
import org.eclipse.jgit.internal.storage.pack.PackExt; import org.eclipse.jgit.internal.storage.pack.PackExt;
import org.eclipse.jgit.lib.BatchRefUpdate; import org.eclipse.jgit.lib.BatchRefUpdate;
import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.ObjectId;
@ -54,6 +55,7 @@ public class InMemoryRepository extends DfsRepository {
private final DfsObjDatabase objdb; private final DfsObjDatabase objdb;
private final RefDatabase refdb; private final RefDatabase refdb;
private String gitwebDescription;
private boolean performsAtomicTransactions = true; private boolean performsAtomicTransactions = true;
/** /**
@ -94,6 +96,17 @@ public class InMemoryRepository extends DfsRepository {
performsAtomicTransactions = atomic; performsAtomicTransactions = atomic;
} }
@Override
@Nullable
public String getGitwebDescription() {
return gitwebDescription;
}
@Override
public void setGitwebDescription(@Nullable String d) {
gitwebDescription = d;
}
private class MemObjDatabase extends DfsObjDatabase { private class MemObjDatabase extends DfsObjDatabase {
private List<DfsPackDescription> packs = new ArrayList<DfsPackDescription>(); private List<DfsPackDescription> packs = new ArrayList<DfsPackDescription>();

Loading…
Cancel
Save