git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitk: Add ability to define an alternate temporary directory

From
David Aguilar <davvid@gmail.com>
Date
Nov 11, 2009, 04:07 UTC
Message-ID
<20091111040715.GA44672@gmail.com>
In-Reply-To
<4AFA368F.207@vilain.net>
On Wed, Nov 11, 2009 at 04:59:11PM +1300, Sam Vilain wrote:
Show 12 quoted lines
> David Aguilar wrote:
> > gitk fails to show diffs when browsing a repository for which
> > we have read-only access.  This is due to gitk's assumption
> > that the current directory is always writable.
> >
> > This teaches gitk to honor the GITK_TMPDIR environment
> > variable.  This allows users to override the default location
> > used for writing temporary files.
> >   
> 
> Is there a good reason not to use the common TMPDIR or TMP environment
> variables for this?

I, personally, would not be opposed to that. The only reason I chose a different variable was that I didn't want to change the existing behavior (backwards-compat hat on).

Since TMPDIR and TMP are common then we'd be changing the behavior.

That said, if there's a consensus that the path doesn't matter much than we could change the behavior. I was just trying to be careful.

-- 
		David
Previous: Sam VilainNext: Junio C Hamano
Message 4 of 9 in “gitk: Add ability to define an alternate temporary directory”
  1. gitk: Add ability to define an alternate temporary directoryDavid Aguilar, Nov 11, 2009
  2. gitk: Document the $GITK_TMPDIR variableDavid Aguilar, Nov 11, 2009
  3. Sam VilainNov 11, 2009
  4. David AguilarNov 11, 2009
  5. Junio C HamanoNov 11, 2009
  6. David AguilarNov 11, 2009
  7. Jeff KingNov 12, 2009
  8. David AguilarNov 12, 2009
  9. Jeff KingNov 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.