Hello! I'm thinking of moving cg-clean functionality to git. After having switched to StGIT, it's the last cogito command I'm still using. I think git can go it much better, since it's a recursive command traversing the whole repository. To be safe and useful, the new command should distinguish between tracked and untracked directories. Untracked files in tracked directories are usually the first target for cleaning, as they are mostly automatic backups and temporary files. Untracked directories are more likely candidates to be preserved, as they can hold external sources, build output, extensive test data etc. cg-clean considers a directory untracked if it has no cached files in it. This carries a significant speed penalty, even if not coded in bash. Maybe it's time to start caching directories in git? I mean, directories corresponding to tree objects could have their stats recorded in the cache. This would allow to distinguish between tracked and untracked directories without scanning them recursively. -- Regards, Pavel Roskin - 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 Tue Jan 24 15:21:05 2006
This archive was generated by hypermail 2.1.8 : 2006-01-24 15:21:14 EST