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

Re: Temporary directories getting errantly added into trees

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 22, 2007, 11:32 UTC
Message-ID
<Pine.LNX.4.64.0711221130510.27959@racer.site>
In-Reply-To
<20071122111600.GF10389@sigill.intra.peff.net>
Hi.
On Thu, 22 Nov 2007, Jeff King wrote:
Show 14 quoted lines
> On Thu, Nov 22, 2007 at 10:55:00AM +0000, Johannes Schindelin wrote:
> 
> > Yes, I know, existing tools could rely on the location.  But then, I 
> > do not think that tools should be allowed to be _that_ married to 
> > particular implementations.  And indeed, I see no reason why a tool 
> > should access .dotest, except for accessing .dotest/patch, and then it 
> > will be very obvious where it fails.
> 
> Another reason might be something like:
> 
>   test -d .dotest && die "rebase or am already in progress"
> 
> which some of the git tools do, and which third party scripts might care 
> about.

Yep, for example this nice bash-completion addendum which changes the prompt according to the current repository's state.

I hope that a symlink .dotest -> .git/rebase (as I suggested in a reply to Martin) would help that, but in the long run I'd appreciate losing even that.

Ciao, Dscho

P.S.: note that even a symlink would already help the situation described by Sam.

Previous: Jeff KingNext: Karl Hasselström
Message 9 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.