It may not be infeasible.
But it is wrong. It "fixes" a totallc clear idiom, namely that every time
a file is written into, the timestamp changes. And guess what, "touch
<file>" is the best proof that sometimes, you want that this happens, even
if the content stays the same.
Of course this works. That is a fundamental feature of Git: if you strip a
non-bare repo of its working directory, then it becomes a bare repo.
This approach is so fragile! It is invasive, easy to get wrong (count the
ways how to invalidate the timestamp), and serves only an obscure use
case, which is better solved otherwise to begin with.
FWIW I have to agree here. I saw quite a few projects go wrong, because
management insisted on abolishing a perfectly good design, just because
they had this pet idea.
No. This is not what Linus was referring to (unless I am really wrong
here, which I refuse to believe).
We pointed out, in several ways, how much easier it is to create a
throw-away working directory.
It is easy, robust, and can be done _right now_ with Git.
Ciao,
Dscho
-
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