commit | 67662fbbbd6bf475b37dcf12a58f2aecb59c0698 | [log] [tgz] |
---|---|---|
author | Jonathan Nieder <jrn@google.com> | Thu Mar 07 14:40:49 2019 -0800 |
committer | David Pursehouse <dpursehouse@collab.net> | Thu Nov 28 11:17:56 2019 +0900 |
tree | 13a065d93389f0c95b90db6093fd01b5ebd773b8 | |
parent | ea998ff9106a804974ad8c7fabf602843d1171e0 [diff] |
Do not retain body in RevisionParser walk Among other steps, this walk is used for a visibility check, so the cumulative size of the commit content retained can be large. Change-Id: Ia58cea7d355b569b5a6aa2ddbe459cff51180df6
diff --git a/java/com/google/gitiles/RevisionParser.java b/java/com/google/gitiles/RevisionParser.java index 9b2d044..89311a3 100644 --- a/java/com/google/gitiles/RevisionParser.java +++ b/java/com/google/gitiles/RevisionParser.java
@@ -108,6 +108,8 @@ path = path.substring(1); } try (RevWalk walk = new RevWalk(repo)) { + walk.setRetainBody(false); + Revision oldRevision = null; StringBuilder b = new StringBuilder();