aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.console
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2014-11-24 20:05:34 -0800
committerShawn Pearce <sop@google.com>2014-11-25 10:21:48 -0800
commitf31323745f90aeb8f0b9bd0df4248363fc284bfe (patch)
treebbadcc9e5827f9d1d96e5f86128ef9cf852d2f5c /org.eclipse.jgit.console
parent7865d7100e2a5f9d02f6679daada0c64ae14935f (diff)
downloadjgit-f31323745f90aeb8f0b9bd0df4248363fc284bfe.tar.gz
jgit-f31323745f90aeb8f0b9bd0df4248363fc284bfe.zip
DirCache: Buffer TREE extension to $GIT_DIR
Increase the in-memory buffer for the TREE extension to 5 MiB, and overflow to $GIT_DIR instead of /tmp. Using a larger buffer reduces the chances a repository will overflow and need to spool the extension to disk. Using $GIT_DIR allows the TREE extension contents to have the same file system protections as the final $GIT_DIR/index. Wrap the entire thing in a try/finally to ensure the temp file is deleted from disk after the block has finished using it. To avoid dangling NFS files, LocalFile.destroy() does close the local file before deleting it. Change-Id: I8f871181a4689e3ebf0cdd4fd1769333cf7546c3
Diffstat (limited to 'org.eclipse.jgit.console')
0 files changed, 0 insertions, 0 deletions