diff options
author | Chandra Pratap <chandrapratap3519@gmail.com> | 2024-09-08 09:35:58 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-08 13:24:03 -0700 |
commit | 476abc39babbdc67782ad04c4fa1d965ca8ff34d (patch) | |
tree | 306ff7576f0fbf55ff188debe4685546d9279156 /diff.c | |
parent | e4e384f68d2e9c2fd726bfc9d16f2359c0dda69c (diff) |
t-reftable-stack: use Git's tempfile API instead of mkstemp()
Git's tempfile API defined by $GIT_DIR/tempfile.{c,h} provides
a unified interface for tempfile operations. Since reftable/stack.c
uses this API for all its tempfile needs instead of raw functions
like mkstemp(), make the ported stack test strictly use Git's
tempfile API as well.
A bigger benefit is the fact that we know to clean up the tempfile
in case the test fails because it gets registered and pruned via a
signal handler.
Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions