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

Re: Temporary directories getting errantly added into trees

From
EWEric Wong <normalperson@yhbt.net>
Date
Nov 22, 2007, 07:30 UTC
Message-ID
<20071122073059.GA28197@soma>
In-Reply-To
<4744FCD9.7020102@vilain.net>
Sam Vilain <sam@vilain.net> wrote:
> I just got through a rather nasty debugging session with git-rebase,
> which relies on a .dotest directory.  Turns out that .dotest was
> accidentally added to the tree in the history of the commit that was
> being rebased onto.
Hi Sam,
Ouch
Show 7 quoted lines
> There are a lot of temporary files like that made by various scripts -
> eg, git-filter-branch makes .git-rewrite, etc.
> 
> I think it would be a good thing for all if you had to work very hard to
> put files like this in the tree, or perhaps it would be better to go
> through and make all the tools that create these temporary directories
> create them under .git instead.
Polluting the working tree is definitely a bad thing to do IMNSHO.

git-rebase --merge already puts its temporary directory inside .git/.dotest-merge. I hoped to set an example with that and get more tools to do the same; but it hasn't happened yet...

-- 
Eric Wong
Previous: Sam VilainNext: Jeff King
Message 2 of 12 in “Temporary directories getting errantly added into trees”
  1. Sam VilainNov 22, 2007
  2. Eric WongNov 22, 2007
  3. Jeff KingNov 22, 2007
  4. Johannes SchindelinNov 22, 2007
  5. Martin LanghoffNov 22, 2007
  6. Johannes SchindelinNov 22, 2007
  7. Junio C HamanoNov 22, 2007
  8. Jeff KingNov 22, 2007
  9. Johannes SchindelinNov 22, 2007
  10. Karl HasselströmNov 23, 2007
  11. Sam VilainNov 24, 2007
  12. Marco CostalbaNov 23, 2007

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.