From: Junio C Hamano Date: Fri, 12 Dec 2008 03:12:53 GMT Subject: Re: What's cooking in git.git (Nov 2008, #06; Wed, 26) Message-ID: <7vmyf29jd6.fsf@gitster.siamese.dyndns.org> In-Reply-To: Daniel Barkalow writes: > "git diff" is an ambiguous model for "git grep". It equally describes > the behavior of "git diff" to say that it treats files outside the > checkout area as matching the index or to say that it never lists files > outside the checkout area. On the other hand, there is the question of > whether "git diff branch1 branch2" shows differences that are outside the > checkout area, and whether "git log" shows commits that only change things > outside the checkout area, and "git grep" should match the behavior of > these. Sure, but as "sparse" does not (again, "it should not, at least to me") change the fact that git is about tracking the history of whole tree, not just a single file, nor just a subset of files, none of these operations should be affected about what the checkout area is.