Teach RevWalk how to completely toss its internal state
commit3f464d7bf7ba56bcc577d599899d103db9cd28f5
authorShawn O. Pearce <spearce@spearce.org>
Mon, 21 Apr 2008 06:23:18 +0000 (21 02:23 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:30 +0000 (11 01:16 -0400)
tree52431a2037d7788067bd5e4acc0af8866a28b1a3
parent0bf5b21c659e2d88ab60ef0d17dff03d4a20134f
Teach RevWalk how to completely toss its internal state

Some applications may wish to toss everything away, thus forcing
a full reparse of RevCommits in the future, or just making the
large pile of RevCommits they had traversed be eligible for garbage
collection.  Nulling out a RevWalk reference may seem to be easy,
but can actually become very complicated if the application has
many RevFlag instances created from a RevWalk (RevFlags point back
to their parent walk).

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/ObjectIdSubclassMap.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevWalk.java