Re: rc4 - make quick-install-doc is broken
- From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
- Date
- Aug 4, 2007, 23:03 UTC
- Message-ID
- <46B505AD.4010009@lsrfire.ath.cx>
- In-Reply-To
- <Pine.LNX.4.64.0708042328000.14781@racer.site>
Johannes Schindelin schrieb:
> Then you make an untracked directory called untracked/. Tradition > dictates that when we're in that directory, we get the prefix > "untracked/", because we might add a file, or reference a file in another > branch, where that directory is _not_ untracked.
The test is modelled after the install script; Documentation/ (the CWD during 'make quick-install-doc') is not tracked in branch origin/man.
Show 11 quoted lines
> So it is expected that checkout-index and ls-files behave differently > in a subdirectory (even if that is currently untracked). > > It seems a bit counterintuitive that read-tree succeeds, but really, > read-tree is only a commit -> index operation, which should not care about > the current prefix. So it is fine. > > Checkout-index, instead, is an index -> working tree operation, and for > most of these, we care about the current prefix (so that you can say git > checkout-index file1, where file1 is in the current directory, which is > _not_ the working tree root).
OK, makes sense.
Thanks, René