From: Jeff King Date: Thu, 01 Dec 2011 18:52:30 GMT Subject: Re: log: option "--follow" not the default for a single file? Message-ID: <20111201185230.GB2873@sigill.intra.peff.net> In-Reply-To: On Wed, Nov 30, 2011 at 07:38:23PM +0100, Ralf Thielow wrote: > >     pathspec. That may happen to match a single file in the current > >     revision, but to git it is actually a prefix-limiting pattern, and > Is it possible to detect the case of a single file in the current > revisionand use "--follow" by default for exactly that? It's possible, but it is changing the meaning of "git log foo". With the current code, even if "foo" is currently a file, it will match "foo/bar" in a prior revision. Switching this to "--follow" will not. -Peff