isomorphic-git / isomorphic-git

A pure JavaScript implementation of git for node and browsers!
https://isomorphic-git.org
MIT License
7.48k stars 378 forks source link

support for wire protocol version 2 #585

Open arjunattam opened 5 years ago

arjunattam commented 5 years ago

Thank you for your work on isomorphic-git!

I wasn't able to find anything on this in the docs: does this support the wire protocol version 2? With GitHub adding support, it would be useful for bandwidth constrained use-cases to utilize the upgrade with this lib.

More on the protocol: Introducing Git protocol version 2

billiegoose commented 5 years ago

It doesn't yet... I've been following the developments and v2 doesn't look too hard to implement. But I was waiting for Github to add support first so there'd be something to test isomorphic-git against.

Right now the only advantage of v2 is server-side filtering of refs, so it really only reduces bandwidth when interacting with repos with hundreds of branches or tags. But as new features get added that are only available to v2 of the protocol, it'll become more enticing.

Let me know if you have a killer application for isomorphic-git that needs v2 of the protocol! I don't have spare bandwidth to work on it just yet, but the more people who ask for it the higher a priority it'll be.

Edit: I'll add this to the FAQ page