DanConwayDev on Nostr: I think its likely that that a repo could be shallow cloned in the browser to expose ...
I think its likely that that a repo could be shallow cloned in the browser to expose all sorts of repo data.
fiatjaf (npub180c…h6w6) demonstrated that it can be done in a bandwidth efficient way with git.
now its just a case of validating that these options made it into gitlib2, and through the rust wrapper (git2) and into the wasm compiled version that can run the the browser (wasm-git).
I'd like to implement a repo explorer and allow links references to commits, files, tags, etc to usefully display the full contents within gitworkshop.dev.
fiatjaf (npub180c…h6w6) demonstrated that it can be done in a bandwidth efficient way with git.
quoting nevent1q…8syjYou could have a button to clone and display files, maybe?
What library would you use in the browser to do a clone?
I did
git clone --no-checkout --depth 1 --filter=blob:none https://github.com/bitcoin/bitcoin
and got 216K, ahahah.
now its just a case of validating that these options made it into gitlib2, and through the rust wrapper (git2) and into the wasm compiled version that can run the the browser (wasm-git).
I'd like to implement a repo explorer and allow links references to commits, files, tags, etc to usefully display the full contents within gitworkshop.dev.