From: Jeff King Date: Thu, 01 May 2008 15:38:05 GMT Subject: Re: detecting rename->commit->modify->commit Message-ID: <20080501153804.GC11469@sigill.intra.peff.net> In-Reply-To: <4819E226.6000404@tikalk.com> On Thu, May 01, 2008 at 06:30:46PM +0300, Ittay Dror wrote: > Well, I would have expected git to notice that the file was renamed in > one commit and keep tracking changes afterwards. That's not how git works, and that's not what you asked it to do. You gave it two states and asked it to diff between them. It never even looked at the intermediate steps (and that's generally why git is so fast). If you want to follow the history and look at every commit, then that is something that _can_ be done, and does get done with things like "git log --follow". But there is a diff mode currently implemented that will crawl the history looking for interesting things. -Peff