Daniel Barkalow <barkalow@xxxxxxxxxxxx> 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html