From: Marcus Griep Date: Tue, 12 Aug 2008 16:00:18 +0000 (-0400) Subject: Git.pm: Add faculties to allow temp files to be cached X-Git-Tag: v1.6.0-rc3~2^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e41352b24e29eba43d00a3fd117befaef1d594bc?ds=inline;hp=e41352b24e29eba43d00a3fd117befaef1d594bc 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 Acked-by: Eric Wong ---