Re: Inconsistencies with git log
From: Jon Smirl <hidden>
Date: 2016-06-15 22:43:48
On 11/7/07, Johannes Schindelin [off-list ref] wrote:
Hi, On Wed, 7 Nov 2007, Jon Smirl wrote:quoted
On 11/7/07, Johannes Schindelin [off-list ref] wrote:quoted
We also tend to take the approach of viewing the history as that of the whole project.But if you type 'git log' while cd'd into a subdirectory the whole log is almost never what you want. It's this kind of thing that makes git harder to use.When I am working in a subdirectory, I often want the whole history. For example, when I am working on the documentation, sometimes I need to look up a commit real quick, that touched other parts. Besides, adding a space and a dot is not what qualifies for "harder to use" with this developer.
So if git log is always whole tree, why doesn't this work? 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 It's not consistent. git log with no parameters is relative to the project root, git log with a parameter is relative to the current directory. -- Jon Smirl jonsmirl@gmail.com