aboutsummaryrefslogtreecommitdiff
path: root/tempfile.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-09-05 08:14:36 -0400
committerJunio C Hamano <gitster@pobox.com>2017-09-06 17:19:53 +0900
commite6fc267314d24fe9a81875b85b28a4b5d0fb78b1 (patch)
treeae95fcbab7c41b0e7aa5f375b8dc43afbc85cbda /tempfile.h
parent83a3069a3895de81fea720ffa6a3e47f9400fe04 (diff)
downloadgit-e6fc267314d24fe9a81875b85b28a4b5d0fb78b1.tar.gz
git-e6fc267314d24fe9a81875b85b28a4b5d0fb78b1.tar.xz
tempfile: prefer is_tempfile_active to bare access
The tempfile code keeps an "active" flag, and we have a number of assertions to make sure that the objects are being used in the right order. Most of these directly check "active" rather than using the is_tempfile_active() accessor. Let's prefer using the accessor, in preparation for it growing more complicated logic (like checking for NULL). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tempfile.h')
0 files changed, 0 insertions, 0 deletions