]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
wrapper: add git_mkdtemp()
authorRené Scharfe <l.s.r@web.de>
Sat, 6 Dec 2025 13:27:39 +0000 (14:27 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Dec 2025 22:28:11 +0000 (07:28 +0900)
commite1ecf0dd6897eae1594b7e9345605b8f88485b95
tree8182ac3c3d18c1c5aca8c3e3e489b9493ccf4cee
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed
wrapper: add git_mkdtemp()

Extend git_mkstemps_mode() to optionally call mkdir(2) instead of
open(2), then use that ability to create a mkdtemp(3) replacement,
git_mkdtemp().  We'll start using it in the next commit.

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