diff options
author | René Scharfe <l.s.r@web.de> | 2022-04-20 22:26:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-04-20 16:17:33 -0700 |
commit | 2c2db194bd9e2f2dda7f1a47d26a1f86b3dd635a (patch) | |
tree | 9502d330ff313ff1c774945203bb10c843deb615 /diff.c | |
parent | 6cd33dceed60949e2dbc32e3f0f5e67c4c882e1e (diff) |
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>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions