gitk: Honor TMPDIR when viewing external diffs
commitc7664f1a8c6d40acf8221ba620a3193dec411f8c
authorDavid Aguilar <davvid@gmail.com>
Fri, 13 Jun 2014 21:13:37 +0000 (13 14:13 -0700)
committerPaul Mackerras <paulus@samba.org>
Sun, 15 Jun 2014 01:35:50 +0000 (15 11:35 +1000)
tree081a5426d39ec6de2a0239b92034ec52daa4d712
parent17f9836c8afc8d4b6d6bb91fd0658df090d75c8f
gitk: Honor TMPDIR when viewing external diffs

gitk fails to show diffs when browsing a read-only repository.
This is due to gitk's assumption that the current directory is always
writable.

Teach gitk to honor either the GITK_TMPDIR or TMPDIR environment
variables.  This allows users to override the default location
used when writing temporary files.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk