gitweb/lib - No need for File::Temp when locking
When using locking to ensure that only one process is generating data
and updating cache, there is no need to use File::Temp for temporary
file. This should improve performance.
The _tempfile_to_path subroutine got promoted to _tempfile_to_path
method, because we want to choose correct one dynamically, based on
the type of object (polymorphism).
Idea-inspired-by-code-by: John 'Warthog9' Hawley <warthog9@kernel.org>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>