tempfile: add mks_tempfile_dt()
commit2c2db194bd9e2f2dda7f1a47d26a1f86b3dd635a
authorRené Scharfe <l.s.r@web.de>
Wed, 20 Apr 2022 20:26:09 +0000 (20 22:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Apr 2022 23:17:33 +0000 (20 16:17 -0700)
tree9502d330ff313ff1c774945203bb10c843deb615
parent6cd33dceed60949e2dbc32e3f0f5e67c4c882e1e
tempfile: add mks_tempfile_dt()

Add a function to create a temporary file with a certain name in a
temporary directory created using mkdtemp(3).  Its result is more
sightly than the paths created by mks_tempfile_ts(), which include
a random prefix.  That's useful for files passed to a program that
displays their name, e.g. an external diff tool.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tempfile.c
tempfile.h