The really sad part about this discussion is that the ".gitignore trick"
is really technically no different at all from the one that David Kastrup
has been advocating a few times, except he calls his ".gitignore" just
".", and seems to think that it's somehow different.
It is true that ".gitignore" and "." _are_ different.
But they are actually different in the sense that the ".gitignore" thing
is something you can control, while the "." thing is something that is in
all directories on UNIX, which is exactly why it _must_not_ be used by git
to mark existence. Exactly because it has thus lost its ability to be
something you can tune per-directory in the working tree!
That said, I actually like my patch, because the git tree structures
actually lend themselves very naturally to the "empty tree", and I know
people have even built up those kinds of trees on purpose, even if the
index doesn't support that notion.
So in that sense, teaching the index about an empty tree is in some ways
the "right thing" to do, if only because it means that the index can
finally express something that the tree objects themselves have always
been able to validly encode.
Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html