aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2013-04-17 00:31:11 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2013-04-26 00:57:17 +0200
commit9dcd8c2c900722cbda7490c1a132fc4b96737c28 (patch)
treec27e3695683fca6d8fe8b59c785e6aaa04bd52be /org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
parent1c40d83f52730379e56b0a95485aad42a52b8e04 (diff)
downloadjgit-9dcd8c2c900722cbda7490c1a132fc4b96737c28.tar.gz
jgit-9dcd8c2c900722cbda7490c1a132fc4b96737c28.zip
Make the Reflog a public API again
Change-Id: I8ced7098da5b345fd9af2fdfafd1ef6a44ccee0d
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index de14282cfd..79f02c0230 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -76,9 +76,6 @@ import org.eclipse.jgit.events.IndexChangedListener;
import org.eclipse.jgit.events.ListenerList;
import org.eclipse.jgit.events.RepositoryEvent;
import org.eclipse.jgit.internal.JGitText;
-import org.eclipse.jgit.internal.storage.file.CheckoutEntry;
-import org.eclipse.jgit.internal.storage.file.ReflogEntry;
-import org.eclipse.jgit.internal.storage.file.ReflogReader;
import org.eclipse.jgit.revwalk.RevBlob;
import org.eclipse.jgit.revwalk.RevCommit;
import org.eclipse.jgit.revwalk.RevObject;
@@ -757,7 +754,7 @@ public abstract class Repository {
private String resolveReflogCheckout(int checkoutNo)
throws IOException {
- List<ReflogEntry> reflogEntries = new ReflogReader(this, Constants.HEAD)
+ List<ReflogEntry> reflogEntries = getReflogReader(Constants.HEAD)
.getReverseEntries();
for (ReflogEntry entry : reflogEntries) {
CheckoutEntry checkout = entry.parseCheckout();
@@ -778,7 +775,7 @@ public abstract class Repository {
JGitText.get().invalidReflogRevision, time));
}
assert number >= 0;
- ReflogReader reader = new ReflogReader(this, ref.getName());
+ ReflogReader reader = getReflogReader(ref.getName());
ReflogEntry entry = reader.getReverseEntry(number);
if (entry == null)
throw new RevisionSyntaxException(MessageFormat.format(