aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2015-05-10 10:42:09 -0700
committerShawn Pearce <spearce@spearce.org>2015-05-10 10:56:34 -0700
commite4e947049f60d72f766d90dff22b488cbe06ba95 (patch)
tree6dadaa4505c25ffea7dc9e87d0388590fb3c6b43 /org.eclipse.jgit.pgm
parentca7daa5226d88c8533c2316e5bc8a66ea8a373c5 (diff)
downloadjgit-e4e947049f60d72f766d90dff22b488cbe06ba95.tar.gz
jgit-e4e947049f60d72f766d90dff22b488cbe06ba95.zip
Expose disposeBody() on RevCommit and RevTag
Applications that use a commit message once and do not need it again can free the body to save memory. Expose the disposeBody() methods to support this and use it in pgm.Log which only visits each commit once. Change-Id: I4142a0749c24f15386ee7fb119934a0432234de3
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java
index 048526ee8a..688de2c499 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java
@@ -267,6 +267,7 @@ class Log extends RevWalkTextBuiltin {
outw.print(s);
outw.println();
}
+ c.disposeBody();
outw.println();
if (showNotes(c))