5 ms·
Thanks for the links. You are correct that I probably won't be able to support all git repos because of memory constraints and unless I get special APIs from t
by creationix 14y ago
Thanks for the links. You are correct that I probably won't be able to support all git repos because of memory constraints and unless I get special APIs from the browser I won't be able to do git protocol or git over ssh. I do feel pretty confident that I can implement dumb and smart HTTP though.
Even if this library can't be used for everything, it will allow a whole lot more use cases that are currently possible.
- maksimlin 14y agoI'd say smart http is more than enough, especially since Github for example is pushing it as the preferred protocol for most users: https://github.com/blog/1104-credential-caching-for-wrist-friendly-git-usage https://github.com/blog/1104-credential-caching-for-wrist-fr... The main issue is that Github do not have CORS support for http access to repos (though they do support CORS for access to repos via their proprietary API) and I don't think the other big public hosters like Bitbucket or Google Code support CORS either. On the subject of big pack files, sure you'd want to stream them to storage instead of trying to store in memory (for instance JGit has this as an option) but I agree Tim that to start with, even supporting small-medium size repos would be a huge win.