summaryrefslogtreecommitdiff
path: root/command-list.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-09-05 08:14:50 -0400
committerJunio C Hamano <gitster@pobox.com>2017-09-06 17:19:53 +0900
commitb5f4dcb598bb369c960f715fcd5c9ccf4112e026 (patch)
tree4a1c222f72fe2eb8e5ed3273a928470206975075 /command-list.txt
parent2933ebbac1967a677eaed1945068941bc3ff7751 (diff)
downloadgit-b5f4dcb598bb369c960f715fcd5c9ccf4112e026.tar.gz
tempfile: factor out deactivation
When we deactivate a tempfile, we also have to clean up the "filename" strbuf. Let's pull this out into its own function to keep the logic in one place (which will become more important when a future patch makes it more complicated). Note that we can use the same function when deactivating an object that _isn't_ actually active yet (like when we hit an error creating a tempfile). These callsites don't currently reset the "active" flag to 0, but it's OK to do so (it's just a noop for these cases). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'command-list.txt')
0 files changed, 0 insertions, 0 deletions