summaryrefslogtreecommitdiff
path: root/unpack-trees.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-09-05 12:14:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-06 08:19:52 (GMT)
commitc0e963b77c6892d40d4ca81a71098aaa6c4eaed3 (patch)
tree2d3cba440242655bf439197c5f3ea8eb0d42b1ef /unpack-trees.h
parent0899013993cd5eb327bc1a40d7c629db37e5ea83 (diff)
downloadgit-c0e963b77c6892d40d4ca81a71098aaa6c4eaed3.zip
git-c0e963b77c6892d40d4ca81a71098aaa6c4eaed3.tar.gz
git-c0e963b77c6892d40d4ca81a71098aaa6c4eaed3.tar.bz2
setup_temporary_shallow: move tempfile struct into function
The setup_temporary_shallow() function creates a temporary file, but we never access the tempfile struct outside of the function. This is OK, since it means we'll just clean up the tempfile on exit. But we can simplify the code a bit by moving the global tempfile struct to the only function in which it's used. Note that it must remain "static" due to tempfile.c's requirement that tempfile storage never goes away until program exit. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.h')
0 files changed, 0 insertions, 0 deletions