Re: Inconsistencies with git log
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 8, 2007, 00:35 UTC
- Message-ID
- <Pine.LNX.4.64.0711080034420.4362@racer.site>
- In-Reply-To
- <9e4733910711071609t3e5412f1mf02e501b2d820bb3@mail.gmail.com>
Hi,
On Wed, 7 Nov 2007, Jon Smirl wrote:
Show 13 quoted lines
> On 11/7/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: > > It is consistent, when you realise that the path arguments are interpreted > > relative to the project root. > > Then why doesn't this work? > > jonsmirl@terra:~/mpc5200b$ git log Documentation > all the log for Documentation.... > jonsmirl@terra:~/mpc5200b$ cd Documentation > jonsmirl@terra:~/mpc5200b/Documentation$ git log Documentation > fatal: ambiguous argument 'Documentation': unknown revision or path > not in the working tree. > Use '--' to separate paths from revisions
Because you are in the subdirectory Documentation/, relative to the project root. So when you say "Documentation", it tries to find the file/directory Documentation/Documentation.
Therefore, just say "git log ." and you will get what you want.
Ciao, Dscho