]> git.ipfire.org Git - thirdparty/git.git/commit - tempfile.c
tempfile: factor out activation
authorJeff King <peff@peff.net>
Tue, 5 Sep 2017 12:14:47 +0000 (08:14 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Sep 2017 08:19:53 +0000 (17:19 +0900)
commit2933ebbac1967a677eaed1945068941bc3ff7751
tree544fff0a9a756dc62fbd07b515079d26f122bd4a
parent9b028aa45a2016ae0dbdfeb85ad9d43f2017db0d
tempfile: factor out activation

There are a few steps required to "activate" a tempfile
struct. Let's pull these out into a function. That saves a
few repeated lines now, but more importantly will make it
easier to change the activation scheme later.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tempfile.c