diff options
author | Jeff King <peff@peff.net> | 2017-09-05 15:14:36 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-06 11:19:53 +0300 |
commit | e6fc267314d24fe9a81875b85b28a4b5d0fb78b1 (patch) | |
tree | ae95fcbab7c41b0e7aa5f375b8dc43afbc85cbda /tempfile.h | |
parent | 83a3069a3895de81fea720ffa6a3e47f9400fe04 (diff) |
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