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.