summaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorMarcus Griep <marcus@griep.us>2008-08-12 12:00:18 -0400
committerEric Wong <normalperson@yhbt.net>2008-08-12 20:46:54 -0700
commite41352b24e29eba43d00a3fd117befaef1d594bc (patch)
treee982beb2c917851e82d2e4392a08113327aa54eb /git-gui
parent04c6e9e9ca34226db095bbaa1218030f99f0b7c6 (diff)
downloadgit-e41352b24e29eba43d00a3fd117befaef1d594bc.tar.gz
Git.pm: Add faculties to allow temp files to be cached
This patch offers a generic interface to allow temp files to be cached while using an instance of the 'Git' package. If many temp files are created and destroyed during the execution of a program, this caching mechanism can help reduce the amount of files created and destroyed by the filesystem. The temp_acquire method provides a weak guarantee that a temp file will not be stolen by subsequent requests. If a file is locked when another acquire request is made, a simple error is thrown. Signed-off-by: Marcus Griep <marcus@griep.us> Acked-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'git-gui')
0 files changed, 0 insertions, 0 deletions