Hi, the following snippet adds git_mkstemp() to libgit (path.c). /holger