diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2016-11-14 17:54:15 -0500 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2016-11-14 17:54:17 -0500 |
commit | 3e522526229ed304aa603ed5a38298971ceea464 (patch) | |
tree | 144873b48bfafdba68cbf556ed3557e059f9ea29 | |
parent | a45cfee7a372b0cf3576dd339c040efeb65d5eeb (diff) | |
parent | 71ea0fe56707ae592e34488bb59333150ed3622b (diff) | |
download | jgit-3e522526229ed304aa603ed5a38298971ceea464.tar.gz jgit-3e522526229ed304aa603ed5a38298971ceea464.zip |
Merge "Support {get,set}GitwebDescription on InMemoryRepository"
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java index 6f390a4b3b..fd213977a8 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java +++ b/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.ReentrantReadWriteLock; +import org.eclipse.jgit.annotations.Nullable; import org.eclipse.jgit.internal.storage.pack.PackExt; import org.eclipse.jgit.lib.BatchRefUpdate; import org.eclipse.jgit.lib.ObjectId; @@ -54,6 +55,7 @@ public class InMemoryRepository extends DfsRepository { private final DfsObjDatabase objdb; private final RefDatabase refdb; + private String gitwebDescription; private boolean performsAtomicTransactions = true; /** @@ -94,6 +96,17 @@ public class InMemoryRepository extends DfsRepository { performsAtomicTransactions = atomic; } + @Override + @Nullable + public String getGitwebDescription() { + return gitwebDescription; + } + + @Override + public void setGitwebDescription(@Nullable String d) { + gitwebDescription = d; + } + private class MemObjDatabase extends DfsObjDatabase { private List<DfsPackDescription> packs = new ArrayList<DfsPackDescription>(); |