On Sat, 8 Oct 2005, Linus Torvalds wrote: > I think we might want to have a flag that says "don't care about > filesystem modes". That should be pretty easy, I think we'd get most of > them by just adding some logic to "ce_match_stat()". > > Then add a "git chmod" to set the mode in the index (which should end up > being just a wrapper around the regular "git-update-index" using the > "--cacheinfo" flag, I think). > > Those parts should be trivial. > > The more interesting issue is how to set the _flag_ that we should do > this. We may have to add a config file, and it should be per-repository > (ie something like ".git/config" or ".git/info/config"). Or do we just do > yet another environment variable? Perhaps have a bit in the index mode for the file to say that the mode in the filesystem is unreliable, which gets set if a stat of the newly-written file doesn't match the mode it was supposed to have, or if git chmod is used to change it; then, if the bit is set, ignore the mode in the filesystem and just use the mode in the index. This should prevent modes from magically changing, even if the user doesn't do anything special. -Daniel *This .sig left intentionally blank* - 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.htmlReceived on Mon Oct 10 16:46:13 2005
This archive was generated by hypermail 2.1.8 : 2005-10-10 16:46:36 EST