Subject: Re: [PATCH] gitk: use mktemp -d to avoid predictable temporary directories

From: Junio C Hamano <[email-masked]>
Date: Mon, 16 Jun 2014 11:17:46 -0700

David Aguilar <[email-masked]> writes:

> Hmm.. I guess what I could do is keep the old behavior (having gitk ignore TMPDIR)
> on Windows and only use the new code path on non-Windows.

Or perhaps attempt to create, catch error and then retry the old way?

Hopefully Windows folks do not have to worry about forgetting to
update the codepath when they update their tcl/wish if you did it
that way, no?

>
> That seems like it'd be the simplest implementation (no need to check versions)
> and the least harmful to existing users (avoids a tcl upgrade or mkdtemp installation
> for Windows users).