Re: Inconsistencies with git log
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 7, 2007, 22:58 UTC
- Message-ID
- <Pine.LNX.4.64.0711072255420.4362@racer.site>
- In-Reply-To
- <9e4733910711071445p7cfb6cffx83adb1d84d6bf9d8@mail.gmail.com>
Hi,
On Wed, 7 Nov 2007, Jon Smirl wrote:
Show 17 quoted lines
> On 11/7/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: > > > On Wed, 7 Nov 2007, Jon Smirl wrote: > > > > > In project root: > > > git log arch/powerpc/platforms/52xx > > > works as expected > > > > > > cd arch/powerpc/platforms/52xx > > > git log arch/powerpc/platforms/52xx > > > fatal: ambiguous argument 'arch/powerpc/platforms/52xx': unknown > > > revision or path not in the working tree. > > > Use '--' to separate paths from revisions > > > > Try "git log ." > > Shouldn't git log default to "git log ."?
Well, it is in line with the other commands being able to work on subdirectories, but doing the whole repository operation by default.
We also tend to take the approach of viewing the history as that of the whole project.
This approach also means that it is a much more expensive operation to log the history as seen by a subdirectory, which is another reason why it is not the default.
Hth, Dscho