diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-06-29 09:32:53 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-06-29 09:32:53 -0700 |
commit | 4913ad57fce7f9c3ab9600a55ba02f589b3088c1 (patch) | |
tree | 4f3581f9635b35d5b5afb528e66dbbea139a81fa /org.eclipse.jgit.iplog/src | |
parent | 94228bde22debe6ffeb5a374690f023290fc6fd2 (diff) | |
download | jgit-4913ad57fce7f9c3ab9600a55ba02f589b3088c1.tar.gz jgit-4913ad57fce7f9c3ab9600a55ba02f589b3088c1.zip |
Use a single ObjectReader in IpLogGenerator
This way we can be ensured its released when the generator
is done running.
Change-Id: I6be48d26b9bd5ac176c1316a9aabdf3a897e1696
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.iplog/src')
-rw-r--r-- | org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java index fa2010d1f6..433d4338df 100644 --- a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java +++ b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java @@ -183,8 +183,8 @@ public class IpLogGenerator { try { db = repo; curs = db.newObjectReader(); - rw = new RevWalk(db); - tw = new NameConflictTreeWalk(db); + rw = new RevWalk(curs); + tw = new NameConflictTreeWalk(curs); RevCommit c = rw.parseCommit(startCommit); |