4 ms·
File locking basically being the antithesis to a distributed version control system, I can't really see how it would fit into Git. How would it work for a syste
by slrz 9y ago
File locking basically being the antithesis to a distributed version control system, I can't really see how it would fit into Git. How would it work for a system with no central repository?
It might make more sense to implement this within the services that emulate a central repository on top of Git.
- alkonaut 9y agoYou lock it in one central repository. There is typically a blessed repository somewhere, at least in every single project I have seen. I know of no one and no project that uses the bare git in a truly distributed sense that isn’t just one central repo with multiple users, or in rare cases a hierarchy of repos such as the Linux kernel. This is also why the github/lab style services are so popular - it’s what people need. But I don’t think that’s a reason to keep this feature away from git itself. I don’t think many want to have to use github just to get this one feature, and as I said, for any repo hosting binary content (common) and using one or more central blessed repos (nearly universal) - it’s very hard to live without.
- davvid 9y agoGitolite has a fine implementation of locking in Git. http://gitolite.com/gitolite/locking/#locking-binary-files http://gitolite.com/gitolite/locking/#locking-binary-files Locking is implemented centrally by gitolite. It would be nice if other services implemented the same mini-protocol.