浏览代码

Discard object bodies when checking connectivity

Since we are only checking the links between objects we don't need
to hold onto commit messages after their headers have been parsed
by the walker.  Dropping them saves a bit of memory, which is always
good when accepting huge pack files.

Change-Id: I378920409b6acf04a35cdf24f81567b1ce030e36
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
tags/v0.9.1
Shawn O. Pearce 13 年前
父节点
当前提交
6f385076e1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

+ 2
- 0
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java 查看文件

@@ -810,6 +810,8 @@ public class ReceivePack {
ip = null;

final ObjectWalk ow = new ObjectWalk(db);
ow.setRetainBody(false);

for (final ReceiveCommand cmd : commands) {
if (cmd.getResult() != Result.NOT_ATTEMPTED)
continue;

正在加载...
取消
保存